all: fix clippy warnings
This commit is contained in:
parent
70912b47e4
commit
64664ca76e
5 changed files with 6 additions and 9 deletions
|
|
@ -749,10 +749,7 @@ impl Input {
|
|||
println!("{prefix}{}:", device.id);
|
||||
println!("{prefix} name: {}", device.name);
|
||||
if print_seat {
|
||||
let seat = match device.seat.as_deref() {
|
||||
Some(s) => s,
|
||||
_ => "<detached>",
|
||||
};
|
||||
let seat = device.seat.as_deref().unwrap_or("<detached>");
|
||||
println!("{prefix} seat: {}", seat);
|
||||
}
|
||||
if let Some(v) = &device.syspath {
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ impl ClientMem {
|
|||
}
|
||||
|
||||
pub fn len(&self) -> usize {
|
||||
unsafe { (*self.data).len() }
|
||||
self.data.len()
|
||||
}
|
||||
|
||||
pub fn offset(self: &Rc<Self>, offset: usize) -> ClientMemOffset {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue