Skip to content

Commit 8e1a8b2

Browse files
oh more CI
1 parent bb457c7 commit 8e1a8b2

13 files changed

+39
-26
lines changed

borsh-derive/src/internals/schema/enums/snapshots/borsh_discriminant_false.snap

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
source: borsh-derive/src/internals/schema/enums/mod.rs
33
expression: pretty_print_syn_str(&actual).unwrap()
4+
snapshot_kind: text
45
---
56
impl borsh::BorshSchema for X {
67
fn declaration() -> borsh::schema::Declaration {
@@ -43,7 +44,7 @@ impl borsh::BorshSchema for X {
4344
<XE as borsh::BorshSchema>::add_definitions_recursively(definitions);
4445
<XF as borsh::BorshSchema>::add_definitions_recursively(definitions);
4546
let definition = borsh::schema::Definition::Enum {
46-
tag_width: 1,
47+
tag_width: 1u8,
4748
variants: borsh::__private::maybestd::vec![
4849
(u8::from(0u8) as i64, "A".into(), < XA as borsh::BorshSchema >
4950
::declaration()), (u8::from(1u8) as i64, "B".into(), < XB as
@@ -54,6 +55,7 @@ impl borsh::BorshSchema for X {
5455
(u8::from(5u8) as i64, "F".into(), < XF as borsh::BorshSchema >
5556
::declaration())
5657
],
58+
tag_signed: false,
5759
};
5860
borsh::schema::add_definition(
5961
<Self as borsh::BorshSchema>::declaration(),
@@ -62,4 +64,3 @@ impl borsh::BorshSchema for X {
6264
);
6365
}
6466
}
65-

borsh-derive/src/internals/schema/enums/snapshots/borsh_discriminant_true.snap

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
source: borsh-derive/src/internals/schema/enums/mod.rs
33
expression: pretty_print_syn_str(&actual).unwrap()
4+
snapshot_kind: text
45
---
56
impl borsh::BorshSchema for X {
67
fn declaration() -> borsh::schema::Declaration {
@@ -43,7 +44,7 @@ impl borsh::BorshSchema for X {
4344
<XE as borsh::BorshSchema>::add_definitions_recursively(definitions);
4445
<XF as borsh::BorshSchema>::add_definitions_recursively(definitions);
4546
let definition = borsh::schema::Definition::Enum {
46-
tag_width: 1,
47+
tag_width: 1u8,
4748
variants: borsh::__private::maybestd::vec![
4849
(u8::from(0) as i64, "A".into(), < XA as borsh::BorshSchema >
4950
::declaration()), (u8::from(20) as i64, "B".into(), < XB as
@@ -54,6 +55,7 @@ impl borsh::BorshSchema for X {
5455
::declaration()), (u8::from(10 + 1) as i64, "F".into(), < XF as
5556
borsh::BorshSchema > ::declaration())
5657
],
58+
tag_signed: false,
5759
};
5860
borsh::schema::add_definition(
5961
<Self as borsh::BorshSchema>::declaration(),
@@ -62,4 +64,3 @@ impl borsh::BorshSchema for X {
6264
);
6365
}
6466
}
65-

borsh-derive/src/internals/schema/enums/snapshots/complex_enum.snap

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
source: borsh-derive/src/internals/schema/enums/mod.rs
33
expression: pretty_print_syn_str(&actual).unwrap()
4+
snapshot_kind: text
45
---
56
impl borsh::BorshSchema for A {
67
fn declaration() -> borsh::schema::Declaration {
@@ -36,7 +37,7 @@ impl borsh::BorshSchema for A {
3637
<ASalad as borsh::BorshSchema>::add_definitions_recursively(definitions);
3738
<ASausage as borsh::BorshSchema>::add_definitions_recursively(definitions);
3839
let definition = borsh::schema::Definition::Enum {
39-
tag_width: 1,
40+
tag_width: 1u8,
4041
variants: borsh::__private::maybestd::vec![
4142
(u8::from(0u8) as i64, "Bacon".into(), < ABacon as borsh::BorshSchema >
4243
::declaration()), (u8::from(1u8) as i64, "Eggs".into(), < AEggs as
@@ -45,6 +46,7 @@ impl borsh::BorshSchema for A {
4546
(u8::from(3u8) as i64, "Sausage".into(), < ASausage as borsh::BorshSchema
4647
> ::declaration())
4748
],
49+
tag_signed: false,
4850
};
4951
borsh::schema::add_definition(
5052
<Self as borsh::BorshSchema>::declaration(),
@@ -53,4 +55,3 @@ impl borsh::BorshSchema for A {
5355
);
5456
}
5557
}
56-

borsh-derive/src/internals/schema/enums/snapshots/complex_enum_generics.snap

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
source: borsh-derive/src/internals/schema/enums/mod.rs
33
expression: pretty_print_syn_str(&actual).unwrap()
4+
snapshot_kind: text
45
---
56
impl<C, W> borsh::BorshSchema for A<C, W>
67
where
@@ -44,7 +45,7 @@ where
4445
<ASalad<C> as borsh::BorshSchema>::add_definitions_recursively(definitions);
4546
<ASausage<W> as borsh::BorshSchema>::add_definitions_recursively(definitions);
4647
let definition = borsh::schema::Definition::Enum {
47-
tag_width: 1,
48+
tag_width: 1u8,
4849
variants: borsh::__private::maybestd::vec![
4950
(u8::from(0u8) as i64, "Bacon".into(), < ABacon as borsh::BorshSchema >
5051
::declaration()), (u8::from(1u8) as i64, "Eggs".into(), < AEggs as
@@ -53,6 +54,7 @@ where
5354
(u8::from(3u8) as i64, "Sausage".into(), < ASausage < W > as
5455
borsh::BorshSchema > ::declaration())
5556
],
57+
tag_signed: false,
5658
};
5759
borsh::schema::add_definition(
5860
<Self as borsh::BorshSchema>::declaration(),
@@ -61,4 +63,3 @@ where
6163
);
6264
}
6365
}
64-

borsh-derive/src/internals/schema/enums/snapshots/complex_enum_generics_borsh_skip_named_field.snap

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
source: borsh-derive/src/internals/schema/enums/mod.rs
33
expression: pretty_print_syn_str(&actual).unwrap()
4+
snapshot_kind: text
45
---
56
impl<W, U, C> borsh::BorshSchema for A<W, U, C>
67
where
@@ -46,7 +47,7 @@ where
4647
<ASalad<C> as borsh::BorshSchema>::add_definitions_recursively(definitions);
4748
<ASausage<W, U> as borsh::BorshSchema>::add_definitions_recursively(definitions);
4849
let definition = borsh::schema::Definition::Enum {
49-
tag_width: 1,
50+
tag_width: 1u8,
5051
variants: borsh::__private::maybestd::vec![
5152
(u8::from(0u8) as i64, "Bacon".into(), < ABacon as borsh::BorshSchema >
5253
::declaration()), (u8::from(1u8) as i64, "Eggs".into(), < AEggs as
@@ -55,6 +56,7 @@ where
5556
(u8::from(3u8) as i64, "Sausage".into(), < ASausage < W, U > as
5657
borsh::BorshSchema > ::declaration())
5758
],
59+
tag_signed: false,
5860
};
5961
borsh::schema::add_definition(
6062
<Self as borsh::BorshSchema>::declaration(),
@@ -63,4 +65,3 @@ where
6365
);
6466
}
6567
}
66-

borsh-derive/src/internals/schema/enums/snapshots/complex_enum_generics_borsh_skip_tuple_field.snap

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
source: borsh-derive/src/internals/schema/enums/mod.rs
33
expression: pretty_print_syn_str(&actual).unwrap()
4+
snapshot_kind: text
45
---
56
impl<C: Eq, W> borsh::BorshSchema for A<C, W>
67
where
@@ -46,7 +47,7 @@ where
4647
<ASalad<C> as borsh::BorshSchema>::add_definitions_recursively(definitions);
4748
<ASausage<W> as borsh::BorshSchema>::add_definitions_recursively(definitions);
4849
let definition = borsh::schema::Definition::Enum {
49-
tag_width: 1,
50+
tag_width: 1u8,
5051
variants: borsh::__private::maybestd::vec![
5152
(u8::from(0u8) as i64, "Bacon".into(), < ABacon as borsh::BorshSchema >
5253
::declaration()), (u8::from(1u8) as i64, "Eggs".into(), < AEggs as
@@ -55,6 +56,7 @@ where
5556
(u8::from(3u8) as i64, "Sausage".into(), < ASausage < W > as
5657
borsh::BorshSchema > ::declaration())
5758
],
59+
tag_signed: false,
5860
};
5961
borsh::schema::add_definition(
6062
<Self as borsh::BorshSchema>::declaration(),
@@ -63,4 +65,3 @@ where
6365
);
6466
}
6567
}
66-

borsh-derive/src/internals/schema/enums/snapshots/filter_foreign_attrs.snap

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
source: borsh-derive/src/internals/schema/enums/mod.rs
33
expression: pretty_print_syn_str(&actual).unwrap()
4+
snapshot_kind: text
45
---
56
impl borsh::BorshSchema for A {
67
fn declaration() -> borsh::schema::Declaration {
@@ -30,12 +31,13 @@ impl borsh::BorshSchema for A {
3031
<AB as borsh::BorshSchema>::add_definitions_recursively(definitions);
3132
<ANegative as borsh::BorshSchema>::add_definitions_recursively(definitions);
3233
let definition = borsh::schema::Definition::Enum {
33-
tag_width: 1,
34+
tag_width: 1u8,
3435
variants: borsh::__private::maybestd::vec![
3536
(u8::from(0u8) as i64, "B".into(), < AB as borsh::BorshSchema >
3637
::declaration()), (u8::from(1u8) as i64, "Negative".into(), < ANegative
3738
as borsh::BorshSchema > ::declaration())
3839
],
40+
tag_signed: false,
3941
};
4042
borsh::schema::add_definition(
4143
<Self as borsh::BorshSchema>::declaration(),
@@ -44,4 +46,3 @@ impl borsh::BorshSchema for A {
4446
);
4547
}
4648
}
47-

borsh-derive/src/internals/schema/enums/snapshots/generic_associated_type.snap

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
source: borsh-derive/src/internals/schema/enums/mod.rs
33
expression: pretty_print_syn_str(&actual).unwrap()
4+
snapshot_kind: text
45
---
56
impl<T, K, V> borsh::BorshSchema for EnumParametrized<T, K, V>
67
where
@@ -57,12 +58,13 @@ where
5758
T,
5859
> as borsh::BorshSchema>::add_definitions_recursively(definitions);
5960
let definition = borsh::schema::Definition::Enum {
60-
tag_width: 1,
61+
tag_width: 1u8,
6162
variants: borsh::__private::maybestd::vec![
6263
(u8::from(0u8) as i64, "B".into(), < EnumParametrizedB < K, V > as
6364
borsh::BorshSchema > ::declaration()), (u8::from(1u8) as i64, "C".into(),
6465
< EnumParametrizedC < T > as borsh::BorshSchema > ::declaration())
6566
],
67+
tag_signed: false,
6668
};
6769
borsh::schema::add_definition(
6870
<Self as borsh::BorshSchema>::declaration(),
@@ -71,4 +73,3 @@ where
7173
);
7274
}
7375
}
74-

borsh-derive/src/internals/schema/enums/snapshots/generic_associated_type_param_override.snap

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
source: borsh-derive/src/internals/schema/enums/mod.rs
33
expression: pretty_print_syn_str(&actual).unwrap()
4+
snapshot_kind: text
45
---
56
impl<T, K, V> borsh::BorshSchema for EnumParametrized<T, K, V>
67
where
@@ -58,12 +59,13 @@ where
5859
T,
5960
> as borsh::BorshSchema>::add_definitions_recursively(definitions);
6061
let definition = borsh::schema::Definition::Enum {
61-
tag_width: 1,
62+
tag_width: 1u8,
6263
variants: borsh::__private::maybestd::vec![
6364
(u8::from(0u8) as i64, "B".into(), < EnumParametrizedB < K, V > as
6465
borsh::BorshSchema > ::declaration()), (u8::from(1u8) as i64, "C".into(),
6566
< EnumParametrizedC < T > as borsh::BorshSchema > ::declaration())
6667
],
68+
tag_signed: false,
6769
};
6870
borsh::schema::add_definition(
6971
<Self as borsh::BorshSchema>::declaration(),
@@ -72,4 +74,3 @@ where
7274
);
7375
}
7476
}
75-

borsh-derive/src/internals/schema/enums/snapshots/simple_enum.snap

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
source: borsh-derive/src/internals/schema/enums/mod.rs
33
expression: pretty_print_syn_str(&actual).unwrap()
4+
snapshot_kind: text
45
---
56
impl borsh::BorshSchema for A {
67
fn declaration() -> borsh::schema::Declaration {
@@ -23,12 +24,13 @@ impl borsh::BorshSchema for A {
2324
<ABacon as borsh::BorshSchema>::add_definitions_recursively(definitions);
2425
<AEggs as borsh::BorshSchema>::add_definitions_recursively(definitions);
2526
let definition = borsh::schema::Definition::Enum {
26-
tag_width: 1,
27+
tag_width: 1u8,
2728
variants: borsh::__private::maybestd::vec![
2829
(u8::from(0u8) as i64, "Bacon".into(), < ABacon as borsh::BorshSchema >
2930
::declaration()), (u8::from(1u8) as i64, "Eggs".into(), < AEggs as
3031
borsh::BorshSchema > ::declaration())
3132
],
33+
tag_signed: false,
3234
};
3335
borsh::schema::add_definition(
3436
<Self as borsh::BorshSchema>::declaration(),
@@ -37,4 +39,3 @@ impl borsh::BorshSchema for A {
3739
);
3840
}
3941
}
40-

borsh-derive/src/internals/schema/enums/snapshots/simple_enum_with_custom_crate.snap

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
source: borsh-derive/src/internals/schema/enums/mod.rs
33
expression: pretty_print_syn_str(&actual).unwrap()
4+
snapshot_kind: text
45
---
56
impl reexporter::borsh::BorshSchema for A {
67
fn declaration() -> reexporter::borsh::schema::Declaration {
@@ -27,13 +28,14 @@ impl reexporter::borsh::BorshSchema for A {
2728
definitions,
2829
);
2930
let definition = reexporter::borsh::schema::Definition::Enum {
30-
tag_width: 1,
31+
tag_width: 1u8,
3132
variants: reexporter::borsh::__private::maybestd::vec![
3233
(u8::from(0u8) as i64, "Bacon".into(), < ABacon as
3334
reexporter::borsh::BorshSchema > ::declaration()), (u8::from(1u8) as i64,
3435
"Eggs".into(), < AEggs as reexporter::borsh::BorshSchema >
3536
::declaration())
3637
],
38+
tag_signed: false,
3739
};
3840
reexporter::borsh::schema::add_definition(
3941
<Self as reexporter::borsh::BorshSchema>::declaration(),
@@ -42,4 +44,3 @@ impl reexporter::borsh::BorshSchema for A {
4244
);
4345
}
4446
}
45-

borsh-derive/src/internals/schema/enums/snapshots/single_field_enum.snap

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
source: borsh-derive/src/internals/schema/enums/mod.rs
33
expression: pretty_print_syn_str(&actual).unwrap()
4+
snapshot_kind: text
45
---
56
impl borsh::BorshSchema for A {
67
fn declaration() -> borsh::schema::Declaration {
@@ -18,11 +19,12 @@ impl borsh::BorshSchema for A {
1819
struct ABacon;
1920
<ABacon as borsh::BorshSchema>::add_definitions_recursively(definitions);
2021
let definition = borsh::schema::Definition::Enum {
21-
tag_width: 1,
22+
tag_width: 1u8,
2223
variants: borsh::__private::maybestd::vec![
2324
(u8::from(0u8) as i64, "Bacon".into(), < ABacon as borsh::BorshSchema >
2425
::declaration())
2526
],
27+
tag_signed: false,
2628
};
2729
borsh::schema::add_definition(
2830
<Self as borsh::BorshSchema>::declaration(),
@@ -31,4 +33,3 @@ impl borsh::BorshSchema for A {
3133
);
3234
}
3335
}
34-

borsh-derive/src/internals/schema/enums/snapshots/with_funcs_attr.snap

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
source: borsh-derive/src/internals/schema/enums/mod.rs
33
expression: pretty_print_syn_str(&actual).unwrap()
4+
snapshot_kind: text
45
---
56
impl<K, V> borsh::BorshSchema for C<K, V>
67
where
@@ -42,12 +43,13 @@ where
4243
<CC3 as borsh::BorshSchema>::add_definitions_recursively(definitions);
4344
<CC4<K, V> as borsh::BorshSchema>::add_definitions_recursively(definitions);
4445
let definition = borsh::schema::Definition::Enum {
45-
tag_width: 1,
46+
tag_width: 1u8,
4647
variants: borsh::__private::maybestd::vec![
4748
(u8::from(0u8) as i64, "C3".into(), < CC3 as borsh::BorshSchema >
4849
::declaration()), (u8::from(1u8) as i64, "C4".into(), < CC4 < K, V > as
4950
borsh::BorshSchema > ::declaration())
5051
],
52+
tag_signed: false,
5153
};
5254
borsh::schema::add_definition(
5355
<Self as borsh::BorshSchema>::declaration(),
@@ -56,4 +58,3 @@ where
5658
);
5759
}
5860
}
59-

0 commit comments

Comments
 (0)