From c39b8a4981830a6bee86fec59f3559fbc5dcded2 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Mon, 30 Oct 2023 14:21:25 +0400 Subject: Fix Clippy warning --- src/input.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/input.rs b/src/input.rs index 11ac4dc5..06fa5abf 100644 --- a/src/input.rs +++ b/src/input.rs @@ -993,9 +993,11 @@ mod tests { ) }; - let mut mods = ModifiersState::default(); - mods.logo = true; - mods.ctrl = true; + let mut mods = ModifiersState { + logo: true, + ctrl: true, + ..Default::default() + }; // Action press/release. -- cgit