Skip to content

Commit 6f546e0

Browse files
committed
enable -Wclippy::inconsistent_struct_constructor
1 parent faff037 commit 6f546e0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ elided_lifetimes_in_paths = "warn"
2626

2727
[workspace.lints.clippy]
2828
equatable_if_let = "warn"
29+
inconsistent_struct_constructor = "warn"
2930
new_without_default = "allow"
3031
redundant_clone = "warn"
3132
type_repetition_in_bounds = "warn"

src/state.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,14 @@ impl State {
9292
let winit = Winit::init(&mut mayland);
9393
let backend = Backend::Winit(winit);
9494

95-
State { mayland, backend }
95+
State { backend, mayland }
9696
} else {
9797
let mut mayland = Mayland::new(event_loop, display, args, CompMod::Meta)?;
9898

9999
let udev = Udev::init(&mut mayland);
100100
let backend = Backend::Udev(udev);
101101

102-
State { mayland, backend }
102+
State { backend, mayland }
103103
};
104104
state.set_xkb_file();
105105

0 commit comments

Comments
 (0)