all: use expect attribute where possible
This commit is contained in:
parent
c3b50dc653
commit
e377470f3f
134 changed files with 241 additions and 296 deletions
|
|
@ -169,7 +169,6 @@ impl<'a> LibInputDevice<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn drag_enabled(&self) -> bool {
|
||||
let enabled =
|
||||
unsafe { ConfigDragState(libinput_device_config_tap_get_drag_enabled(self.dev)) };
|
||||
|
|
@ -189,7 +188,6 @@ impl<'a> LibInputDevice<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn drag_lock_enabled(&self) -> bool {
|
||||
let enabled = unsafe {
|
||||
ConfigDragLockState(libinput_device_config_tap_get_drag_lock_enabled(self.dev))
|
||||
|
|
|
|||
|
|
@ -178,7 +178,6 @@ impl<'a> LibInputEventKeyboard<'a> {
|
|||
unsafe { KeyState(libinput_event_keyboard_get_key_state(self.event)) }
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn time_usec(&self) -> u64 {
|
||||
unsafe { libinput_event_keyboard_get_time_usec(self.event) }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue