Skip to content

Commit

Permalink
oh more CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmitry-lahoda committed Nov 3, 2024
1 parent bb457c7 commit 8e1a8b2
Show file tree
Hide file tree
Showing 13 changed files with 39 additions and 26 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 borsh::BorshSchema for X {
fn declaration() -> borsh::schema::Declaration {
Expand Down Expand Up @@ -43,7 +44,7 @@ impl borsh::BorshSchema for X {
<XE as borsh::BorshSchema>::add_definitions_recursively(definitions);
<XF 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, "A".into(), < XA as borsh::BorshSchema >
::declaration()), (u8::from(1u8) as i64, "B".into(), < XB as
Expand All @@ -54,6 +55,7 @@ impl borsh::BorshSchema for X {
(u8::from(5u8) as i64, "F".into(), < XF as borsh::BorshSchema >
::declaration())
],
tag_signed: false,
};
borsh::schema::add_definition(
<Self as borsh::BorshSchema>::declaration(),
Expand All @@ -62,4 +64,3 @@ impl borsh::BorshSchema for X {
);
}
}

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 borsh::BorshSchema for X {
fn declaration() -> borsh::schema::Declaration {
Expand Down Expand Up @@ -43,7 +44,7 @@ impl borsh::BorshSchema for X {
<XE as borsh::BorshSchema>::add_definitions_recursively(definitions);
<XF 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(0) as i64, "A".into(), < XA as borsh::BorshSchema >
::declaration()), (u8::from(20) as i64, "B".into(), < XB as
Expand All @@ -54,6 +55,7 @@ impl borsh::BorshSchema for X {
::declaration()), (u8::from(10 + 1) as i64, "F".into(), < XF as
borsh::BorshSchema > ::declaration())
],
tag_signed: false,
};
borsh::schema::add_definition(
<Self as borsh::BorshSchema>::declaration(),
Expand All @@ -62,4 +64,3 @@ impl borsh::BorshSchema for X {
);
}
}

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 borsh::BorshSchema for A {
fn declaration() -> borsh::schema::Declaration {
Expand Down Expand Up @@ -36,7 +37,7 @@ impl borsh::BorshSchema for A {
<ASalad as borsh::BorshSchema>::add_definitions_recursively(definitions);
<ASausage 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, "Bacon".into(), < ABacon as borsh::BorshSchema >
::declaration()), (u8::from(1u8) as i64, "Eggs".into(), < AEggs as
Expand All @@ -45,6 +46,7 @@ impl borsh::BorshSchema for A {
(u8::from(3u8) as i64, "Sausage".into(), < ASausage as borsh::BorshSchema
> ::declaration())
],
tag_signed: false,
};
borsh::schema::add_definition(
<Self as borsh::BorshSchema>::declaration(),
Expand All @@ -53,4 +55,3 @@ impl borsh::BorshSchema for A {
);
}
}

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<C, W> borsh::BorshSchema for A<C, W>
where
Expand Down Expand Up @@ -44,7 +45,7 @@ where
<ASalad<C> as borsh::BorshSchema>::add_definitions_recursively(definitions);
<ASausage<W> 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, "Bacon".into(), < ABacon as borsh::BorshSchema >
::declaration()), (u8::from(1u8) as i64, "Eggs".into(), < AEggs as
Expand All @@ -53,6 +54,7 @@ where
(u8::from(3u8) as i64, "Sausage".into(), < ASausage < W > as
borsh::BorshSchema > ::declaration())
],
tag_signed: false,
};
borsh::schema::add_definition(
<Self as borsh::BorshSchema>::declaration(),
Expand All @@ -61,4 +63,3 @@ where
);
}
}

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<W, U, C> borsh::BorshSchema for A<W, U, C>
where
Expand Down Expand Up @@ -46,7 +47,7 @@ where
<ASalad<C> as borsh::BorshSchema>::add_definitions_recursively(definitions);
<ASausage<W, U> 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, "Bacon".into(), < ABacon as borsh::BorshSchema >
::declaration()), (u8::from(1u8) as i64, "Eggs".into(), < AEggs as
Expand All @@ -55,6 +56,7 @@ where
(u8::from(3u8) as i64, "Sausage".into(), < ASausage < W, U > as
borsh::BorshSchema > ::declaration())
],
tag_signed: false,
};
borsh::schema::add_definition(
<Self as borsh::BorshSchema>::declaration(),
Expand All @@ -63,4 +65,3 @@ where
);
}
}

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<C: Eq, W> borsh::BorshSchema for A<C, W>
where
Expand Down Expand Up @@ -46,7 +47,7 @@ where
<ASalad<C> as borsh::BorshSchema>::add_definitions_recursively(definitions);
<ASausage<W> 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, "Bacon".into(), < ABacon as borsh::BorshSchema >
::declaration()), (u8::from(1u8) as i64, "Eggs".into(), < AEggs as
Expand All @@ -55,6 +56,7 @@ where
(u8::from(3u8) as i64, "Sausage".into(), < ASausage < W > as
borsh::BorshSchema > ::declaration())
],
tag_signed: false,
};
borsh::schema::add_definition(
<Self as borsh::BorshSchema>::declaration(),
Expand All @@ -63,4 +65,3 @@ where
);
}
}

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 borsh::BorshSchema for A {
fn declaration() -> borsh::schema::Declaration {
Expand Down Expand Up @@ -30,12 +31,13 @@ impl borsh::BorshSchema for A {
<AB as borsh::BorshSchema>::add_definitions_recursively(definitions);
<ANegative 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, "B".into(), < AB as borsh::BorshSchema >
::declaration()), (u8::from(1u8) as i64, "Negative".into(), < ANegative
as borsh::BorshSchema > ::declaration())
],
tag_signed: false,
};
borsh::schema::add_definition(
<Self as borsh::BorshSchema>::declaration(),
Expand All @@ -44,4 +46,3 @@ impl borsh::BorshSchema for A {
);
}
}

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<T, K, V> borsh::BorshSchema for EnumParametrized<T, K, V>
where
Expand Down Expand Up @@ -57,12 +58,13 @@ where
T,
> 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, "B".into(), < EnumParametrizedB < K, V > as
borsh::BorshSchema > ::declaration()), (u8::from(1u8) as i64, "C".into(),
< EnumParametrizedC < T > as borsh::BorshSchema > ::declaration())
],
tag_signed: false,
};
borsh::schema::add_definition(
<Self as borsh::BorshSchema>::declaration(),
Expand All @@ -71,4 +73,3 @@ where
);
}
}

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<T, K, V> borsh::BorshSchema for EnumParametrized<T, K, V>
where
Expand Down Expand Up @@ -58,12 +59,13 @@ where
T,
> 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, "B".into(), < EnumParametrizedB < K, V > as
borsh::BorshSchema > ::declaration()), (u8::from(1u8) as i64, "C".into(),
< EnumParametrizedC < T > as borsh::BorshSchema > ::declaration())
],
tag_signed: false,
};
borsh::schema::add_definition(
<Self as borsh::BorshSchema>::declaration(),
Expand All @@ -72,4 +74,3 @@ where
);
}
}

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 borsh::BorshSchema for A {
fn declaration() -> borsh::schema::Declaration {
Expand All @@ -23,12 +24,13 @@ impl borsh::BorshSchema for A {
<ABacon as borsh::BorshSchema>::add_definitions_recursively(definitions);
<AEggs 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, "Bacon".into(), < ABacon as borsh::BorshSchema >
::declaration()), (u8::from(1u8) as i64, "Eggs".into(), < AEggs as
borsh::BorshSchema > ::declaration())
],
tag_signed: false,
};
borsh::schema::add_definition(
<Self as borsh::BorshSchema>::declaration(),
Expand All @@ -37,4 +39,3 @@ impl borsh::BorshSchema for A {
);
}
}

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 reexporter::borsh::BorshSchema for A {
fn declaration() -> reexporter::borsh::schema::Declaration {
Expand All @@ -27,13 +28,14 @@ impl reexporter::borsh::BorshSchema for A {
definitions,
);
let definition = reexporter::borsh::schema::Definition::Enum {
tag_width: 1,
tag_width: 1u8,
variants: reexporter::borsh::__private::maybestd::vec![
(u8::from(0u8) as i64, "Bacon".into(), < ABacon as
reexporter::borsh::BorshSchema > ::declaration()), (u8::from(1u8) as i64,
"Eggs".into(), < AEggs as reexporter::borsh::BorshSchema >
::declaration())
],
tag_signed: false,
};
reexporter::borsh::schema::add_definition(
<Self as reexporter::borsh::BorshSchema>::declaration(),
Expand All @@ -42,4 +44,3 @@ impl reexporter::borsh::BorshSchema for A {
);
}
}

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 borsh::BorshSchema for A {
fn declaration() -> borsh::schema::Declaration {
Expand All @@ -18,11 +19,12 @@ impl borsh::BorshSchema for A {
struct ABacon;
<ABacon 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, "Bacon".into(), < ABacon as borsh::BorshSchema >
::declaration())
],
tag_signed: false,
};
borsh::schema::add_definition(
<Self as borsh::BorshSchema>::declaration(),
Expand All @@ -31,4 +33,3 @@ impl borsh::BorshSchema for A {
);
}
}

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<K, V> borsh::BorshSchema for C<K, V>
where
Expand Down Expand Up @@ -42,12 +43,13 @@ where
<CC3 as borsh::BorshSchema>::add_definitions_recursively(definitions);
<CC4<K, V> 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, "C3".into(), < CC3 as borsh::BorshSchema >
::declaration()), (u8::from(1u8) as i64, "C4".into(), < CC4 < K, V > as
borsh::BorshSchema > ::declaration())
],
tag_signed: false,
};
borsh::schema::add_definition(
<Self as borsh::BorshSchema>::declaration(),
Expand All @@ -56,4 +58,3 @@ where
);
}
}

0 comments on commit 8e1a8b2

Please sign in to comment.