mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-20 10:02:16 +00:00
style: some small fixes
- remove invalid struct pattern lint message: struct pattern is not needed for a unit variant help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#unneeded_struct_pattern - remove call to default() on unit struct lint message: use of `default` to create a unit struct help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#default_constructed_unit_structs - replace if/else by direct affectation lint message: this if-then-else expression assigns a bool literal help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#needless_bool_assign - replace assert_eq on unit by `unwrap` + let typed binding
This commit is contained in:
@@ -1011,7 +1011,7 @@ mod tests {
|
||||
// no bucket, won't work with the rest of the test suite
|
||||
assert!(matches!(
|
||||
parse("GET", "/", None, None).0,
|
||||
Endpoint::ListBuckets { .. }
|
||||
Endpoint::ListBuckets
|
||||
));
|
||||
assert!(matches!(
|
||||
parse("GET", "/", None, None).0.authorization_type(),
|
||||
|
||||
Reference in New Issue
Block a user