all: set rust edition to 2024
This commit is contained in:
parent
02a18f620b
commit
3338909170
515 changed files with 1225 additions and 1187 deletions
|
|
@ -2,8 +2,8 @@ use {
|
|||
crate::{
|
||||
backend::AXIS_120,
|
||||
ifs::wl_seat::{
|
||||
wl_pointer::{PendingScroll, VERTICAL_SCROLL},
|
||||
PX_PER_SCROLL,
|
||||
wl_pointer::{PendingScroll, VERTICAL_SCROLL},
|
||||
},
|
||||
},
|
||||
std::cell::Cell,
|
||||
|
|
@ -38,10 +38,6 @@ impl Scroller {
|
|||
self.v120.set(0);
|
||||
self.px.set(0.0);
|
||||
}
|
||||
if n != 0 {
|
||||
Some(n)
|
||||
} else {
|
||||
None
|
||||
}
|
||||
if n != 0 { Some(n) } else { None }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue