Skip to content

Commit ab238ba

Browse files
committed
Fix clippy warnings
1 parent e9856e2 commit ab238ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

input-capture/src/layer_shell.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ impl Dispatch<WlPointer, ()> for State {
813813
})),
814814
));
815815
}
816-
wl_pointer::Event::Frame {} => {
816+
wl_pointer::Event::Frame => {
817817
// TODO properly handle frame events
818818
// we simply insert a frame event on the client side
819819
// after each event for now

input-emulation/src/evdev.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ impl Emulation for EvdevEmulation {
6767
};
6868
// TODO check that the conversion for `value` is right
6969
self.dev
70-
.emit(&[*evdev::RelativeAxisEvent::new(axis, value as i32 * 120)])?;
70+
.emit(&[*evdev::RelativeAxisEvent::new(axis, value * 120)])?;
7171
}
7272
},
7373
input_event::Event::Keyboard(k) => match k {

0 commit comments

Comments
 (0)