Update rustfmt to the 2024 style edition (#35764)

* Use 2024 style edition

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Reformat all code

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

---------

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
Simon Wülker 2025-03-03 12:26:53 +01:00 committed by GitHub
parent 6300e820b4
commit 3d320fa96a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
603 changed files with 1739 additions and 1648 deletions

View file

@ -5,7 +5,7 @@
use std::cell::Cell;
use std::collections::HashMap;
use std::env;
use std::fs::{create_dir_all, File};
use std::fs::{File, create_dir_all};
use std::io::Write;
use std::iter::once;
use std::rc::Rc;
@ -58,10 +58,10 @@ use webrender_traits::{
CompositorHitTestResult, CrossProcessCompositorMessage, ImageUpdate, UntrustedNodeAddress,
};
use crate::InitialCompositorState;
use crate::touch::{TouchHandler, TouchMoveAction, TouchMoveAllowed, TouchSequenceState};
use crate::webview::{UnknownWebView, WebView, WebViewManager};
use crate::windowing::{self, EmbedderCoordinates, WebRenderDebugOption, WindowMethods};
use crate::InitialCompositorState;
#[derive(Debug, PartialEq)]
enum UnableToComposite {
@ -599,7 +599,7 @@ impl IOCompositor {
Err(error) => {
return warn!(
"Could not receive WebRender display list items data: {error}"
)
);
},
};
let cache_data = match display_list_receiver.recv() {
@ -607,7 +607,7 @@ impl IOCompositor {
Err(error) => {
return warn!(
"Could not receive WebRender display list cache data: {error}"
)
);
},
};
let spatial_tree = match display_list_receiver.recv() {
@ -615,7 +615,7 @@ impl IOCompositor {
Err(error) => {
return warn!(
"Could not receive WebRender display list spatial tree: {error}."
)
);
},
};
let built_display_list = BuiltDisplayList::from_data(