Skip to content

Commit

Permalink
fixed CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmitry-lahoda committed Nov 3, 2024
1 parent 5389767 commit bb457c7
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
source: borsh-derive/src/internals/schema/enums/mod.rs
expression: pretty_print_syn_str(&actual).unwrap()
snapshot_kind: text
---
impl<B, A> borsh::BorshSchema for Side<B, A>
where
Expand Down Expand Up @@ -41,12 +42,13 @@ where
<SideLeft<A> as borsh::BorshSchema>::add_definitions_recursively(definitions);
<SideRight<B> as borsh::BorshSchema>::add_definitions_recursively(definitions);
let definition = borsh::schema::Definition::Enum {
tag_width: 1,
tag_width: 1u8,
variants: borsh::__private::maybestd::vec![
(u8::from(0u8) as i64, "Left".into(), < SideLeft < A > as
borsh::BorshSchema > ::declaration()), (u8::from(1u8) as i64, "Right"
.into(), < SideRight < B > as borsh::BorshSchema > ::declaration())
],
tag_signed: false,
};
borsh::schema::add_definition(
<Self as borsh::BorshSchema>::declaration(),
Expand All @@ -55,4 +57,3 @@ where
);
}
}

0 comments on commit bb457c7

Please sign in to comment.