1
0
Fork 0
forked from wry/wry

all: fix clippy warnings

This commit is contained in:
Julian Orth 2025-07-01 09:31:21 +02:00
parent 70912b47e4
commit 64664ca76e
5 changed files with 6 additions and 9 deletions

View file

@ -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 {

View file

@ -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 {