Skip to content

Commit

Permalink
apply cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Oct 18, 2024
1 parent a5b5267 commit bd6da58
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions test_crates/enum_variant_missing/old/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@ pub enum TupleVariantWillBeRemoved {
}

pub enum StructVariantWillBeRemoved {
Foo { bar: usize },
Foo {
bar: usize,
},
/// Testing: <https://doc.rust-lang.org/cargo/reference/semver.html#item-remove>
Bar { bar: usize },
Bar {
bar: usize,
},
}

/// This enum should not be reported by the `enum_variant_missing` rule:
Expand Down
2 changes: 1 addition & 1 deletion test_outputs/query_execution/enum_missing.snap
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ expression: "&query_execution_results"
String("enum_variant_missing"),
String("ShouldNotMatch"),
]),
"span_begin_line": Uint64(22),
"span_begin_line": Uint64(26),
"span_filename": String("src/lib.rs"),
"visibility_limit": String("public"),
},
Expand Down
2 changes: 1 addition & 1 deletion test_outputs/query_execution/enum_variant_missing.snap
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ expression: "&query_execution_results"
String("enum_variant_missing"),
String("StructVariantWillBeRemoved"),
]),
"span_begin_line": Uint64(16),
"span_begin_line": Uint64(18),
"span_filename": String("src/lib.rs"),
"variant_name": String("Bar"),
"visibility_limit": String("public"),
Expand Down

0 comments on commit bd6da58

Please sign in to comment.