Skip to content

Commit f6c5a26

Browse files
authored
[e2e-example] fix up visibility (#88)
Rust 1.95 seems to warn about this.
1 parent 6820eaf commit f6c5a26

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

e2e-example/apis/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ pub mod versioned {
8888
}
8989

9090
#[derive(Serialize, JsonSchema)]
91-
struct ThingV1 {
91+
pub struct ThingV1 {
9292
thing_str: &'static str,
9393
// EXERCISE: Comment out the line above, and uncomment the line below, to
9494
// introduce a breaking change to the blessed 1.0.0 version of this
@@ -97,7 +97,7 @@ pub mod versioned {
9797
}
9898

9999
#[derive(Serialize, JsonSchema)]
100-
struct ThingV2 {
100+
pub struct ThingV2 {
101101
// Note: this was originally `thing_number: u32`, but a wrapper type was
102102
// added afterwards to test out wire-compatible changes to the schema.
103103
// This trivial change caused THREE_DOT_OH to be generated.

0 commit comments

Comments
 (0)