Skip to content

Commit e54fd39

Browse files
committed
cargo fmt
1 parent 2c1f472 commit e54fd39

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

library/alloc/src/sync.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -2850,9 +2850,7 @@ impl<T: ?Sized, A: Allocator> Weak<T, A> {
28502850
// We are careful to *not* create a reference covering the "data" field, as
28512851
// the field may be mutated concurrently (for example, if the last `Arc`
28522852
// is dropped, the data field will be dropped in-place).
2853-
Some(unsafe {
2854-
WeakInner { strong: &(*ptr).strong, weak: &(*ptr).weak }
2855-
})
2853+
Some(unsafe { WeakInner { strong: &(*ptr).strong, weak: &(*ptr).weak } })
28562854
}
28572855
}
28582856

0 commit comments

Comments
 (0)