mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +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
|
@ -16,14 +16,14 @@ use std::ops::Drop;
|
|||
use std::{mem, ptr};
|
||||
|
||||
use js::glue::JS_GetReservedSlot;
|
||||
use js::jsapi::{JSTracer, JS_SetReservedSlot};
|
||||
use js::jsapi::{JS_SetReservedSlot, JSTracer};
|
||||
use js::jsval::{PrivateValue, UndefinedValue};
|
||||
use libc::c_void;
|
||||
use malloc_size_of::{MallocSizeOf, MallocSizeOfOps};
|
||||
|
||||
use crate::JSTraceable;
|
||||
use crate::reflector::DomObject;
|
||||
use crate::root::DomRoot;
|
||||
use crate::JSTraceable;
|
||||
|
||||
/// The index of the slot wherein a pointer to the weak holder cell is
|
||||
/// stored for weak-referenceable bindings. We use slot 1 for holding it,
|
||||
|
@ -70,8 +70,7 @@ pub trait WeakReferenceable: DomObject + Sized {
|
|||
let new_count = box_.count.get() + 1;
|
||||
trace!(
|
||||
"Incrementing WeakBox refcount for {:p} to {}.",
|
||||
self,
|
||||
new_count
|
||||
self, new_count
|
||||
);
|
||||
box_.count.set(new_count);
|
||||
WeakRef {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue