all: address clippy lints
This commit is contained in:
parent
e5fd0fa192
commit
9e67158f47
29 changed files with 31 additions and 68 deletions
|
|
@ -391,7 +391,7 @@ impl<'a> LibInputTabletPadModeGroup<'a> {
|
|||
}
|
||||
|
||||
impl RegisteredDevice {
|
||||
pub fn device(&self) -> LibInputDevice {
|
||||
pub fn device(&self) -> LibInputDevice<'_> {
|
||||
LibInputDevice {
|
||||
dev: self.dev,
|
||||
_phantom: Default::default(),
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ impl<'a> Drop for LibInputEvent<'a> {
|
|||
|
||||
macro_rules! converter {
|
||||
($name:ident, $out:ident, $f:ident) => {
|
||||
pub fn $name(&self) -> Option<$out> {
|
||||
pub fn $name(&self) -> Option<$out<'_>> {
|
||||
let res = unsafe { $f(self.event) };
|
||||
if res.is_null() {
|
||||
None
|
||||
|
|
@ -129,7 +129,7 @@ impl<'a> LibInputEvent<'a> {
|
|||
unsafe { EventType(libinput_event_get_type(self.event)) }
|
||||
}
|
||||
|
||||
pub fn device(&self) -> LibInputDevice {
|
||||
pub fn device(&self) -> LibInputDevice<'_> {
|
||||
LibInputDevice {
|
||||
dev: unsafe { libinput_event_get_device(self.event) },
|
||||
_phantom: Default::default(),
|
||||
|
|
@ -491,7 +491,7 @@ impl<'a> LibInputEventTabletPad<'a> {
|
|||
unsafe { libinput_event_tablet_pad_get_mode(self.event) as u32 }
|
||||
}
|
||||
|
||||
pub fn mode_group(&self) -> LibInputTabletPadModeGroup {
|
||||
pub fn mode_group(&self) -> LibInputTabletPadModeGroup<'_> {
|
||||
LibInputTabletPadModeGroup {
|
||||
group: unsafe { libinput_event_tablet_pad_get_mode_group(self.event) },
|
||||
_phantom: Default::default(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue