chore: Rust 2024 edition
Set the formatting style to 2021 edition to avoid disrupting existing work. Remove when possible.
This commit is contained in:
parent
35d781dc1e
commit
7f7ab8bcbe
19 changed files with 494 additions and 506 deletions
|
|
@ -163,7 +163,7 @@ fn init_libinput(
|
|||
let libinput_backend = LibinputInputBackend::new(libinput_context.clone());
|
||||
|
||||
evlh.insert_source(libinput_backend, move |mut event, _, state| {
|
||||
if let InputEvent::DeviceAdded { ref mut device } = &mut event {
|
||||
if let InputEvent::DeviceAdded { device } = &mut event {
|
||||
state.common.config.read_device(device);
|
||||
state
|
||||
.backend
|
||||
|
|
|
|||
|
|
@ -1379,7 +1379,7 @@ where
|
|||
elements.truncate(old_len);
|
||||
}
|
||||
|
||||
if let (Some(ref damage), _) = &res {
|
||||
if let (Some(damage), _) = &res {
|
||||
let blit_to_buffer =
|
||||
|renderer: &mut R, blit_from: &mut R::Framebuffer<'_>| {
|
||||
if let Ok(dmabuf) = get_dmabuf(buffer) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue