diff options
author | Simon Wülker <simon.wuelker@arcor.de> | 2025-03-03 12:26:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-03 11:26:53 +0000 |
commit | 3d320fa96ae2ca95a720c454c47ee7827864c5af (patch) | |
tree | 1b7718d574cb9164d924b7571760d90d6d2099c4 /components/script/dom/bindings/principals.rs | |
parent | 6300e820b4e3fbfcec260048f931528d4998d5e4 (diff) | |
download | servo-3d320fa96ae2ca95a720c454c47ee7827864c5af.tar.gz servo-3d320fa96ae2ca95a720c454c47ee7827864c5af.zip |
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>
Diffstat (limited to 'components/script/dom/bindings/principals.rs')
-rw-r--r-- | components/script/dom/bindings/principals.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/bindings/principals.rs b/components/script/dom/bindings/principals.rs index d6f3e10981c..b037fcb0709 100644 --- a/components/script/dom/bindings/principals.rs +++ b/components/script/dom/bindings/principals.rs @@ -12,8 +12,8 @@ use js::glue::{ JSPrincipalsCallbacks, }; use js::jsapi::{ - JSContext, JSPrincipals, JSStructuredCloneReader, JSStructuredCloneWriter, JS_DropPrincipals, - JS_HoldPrincipals, JS_ReadUint32Pair, + JS_DropPrincipals, JS_HoldPrincipals, JS_ReadUint32Pair, JSContext, JSPrincipals, + JSStructuredCloneReader, JSStructuredCloneWriter, }; use js::rust::Runtime; use servo_url::MutableOrigin; @@ -111,7 +111,7 @@ impl ServoJSPrincipalsRef<'_> { impl Clone for ServoJSPrincipalsRef<'_> { #[inline] fn clone(&self) -> Self { - Self(ManuallyDrop::new(ServoJSPrincipals(self.0 .0)), PhantomData) + Self(ManuallyDrop::new(ServoJSPrincipals(self.0.0)), PhantomData) } } |