mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
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:
parent
6300e820b4
commit
3d320fa96a
603 changed files with 1739 additions and 1648 deletions
|
@ -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(
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use std::collections::hash_map::Entry;
|
||||
use std::collections::HashMap;
|
||||
use std::collections::hash_map::Entry;
|
||||
|
||||
use base::id::{PipelineId, WebViewId};
|
||||
use webrender_api::units::DeviceRect;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue