Skip to content

Commit da97970

Browse files
author
Ype Kingma
committed
Format the new unsafe blocks
1 parent 417d387 commit da97970

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/ui/lifetimes_bound_nested_ref_expl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ impl<'a, 'b> Extend1<'a, 'b> for <&'b &'a () as Trait1>::Type1 {
4949
unsafe fn deinit_slice_mut<'a, 'b, T>(s: &'a mut &'b mut [T]) -> &'a mut &'b mut [MaybeUninit<T>] {
5050
let s: *mut &mut [T] = s;
5151
let s = s as *mut &mut [MaybeUninit<T>];
52-
unsafe {&mut *s}
52+
unsafe { &mut *s }
5353
}
5454

5555
// test case for unnamed references.

tests/ui/lifetimes_bound_nested_ref_impl.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This was started as a copy from the fixed output of lifetimes_bound_nested_ref_expl.fixed
1+
// This was started as a copy from the fixed output of lifetimes_bound_nested_ref_expl.fixed
22
// Adapted: the lint name and the code comments.
33
#![warn(clippy::implicit_lifetimes_bound)]
44
use core::mem::MaybeUninit;
@@ -51,7 +51,7 @@ impl<'a: 'b, 'b> Extend1<'a, 'b> for <&'b &'a () as Trait1>::Type1 {
5151
unsafe fn deinit_slice_mut<'a, 'b: 'a, T>(s: &'a mut &'b mut [T]) -> &'a mut &'b mut [MaybeUninit<T>] {
5252
let s: *mut &mut [T] = s;
5353
let s = s as *mut &mut [MaybeUninit<T>];
54-
unsafe {&mut *s}
54+
unsafe { &mut *s }
5555
}
5656

5757
// test case for unnamed references.

0 commit comments

Comments
 (0)