Rollup merge of #125637 - nnethercote:rustfmt-fixes, r=GuillaumeGomez · model-checking/verify-rust-std@914d2c0 (original) (raw)

Original file line number Diff line number Diff line change
@@ -209,18 +209,14 @@ impl<Dyn: ?Sized> DynMetadata {
209 209 // Consider a reference like `&(i32, dyn Send)`: the vtable will only store the size of the
210 210 // `Send` part!
211 211 // SAFETY: DynMetadata always contains a valid vtable pointer
212 -return unsafe {
213 -crate::intrinsics::vtable_size(self.vtable_ptr() as *const ())
214 -};
212 +return unsafe { crate::intrinsics::vtable_size(self.vtable_ptr() as *const ()) };
215 213 }
216 214
217 215 /// Returns the alignment of the type associated with this vtable.
218 216 #[inline]
219 217 pub fn align_of(self) -> usize {
220 218 // SAFETY: DynMetadata always contains a valid vtable pointer
221 -return unsafe {
222 -crate::intrinsics::vtable_align(self.vtable_ptr() as *const ())
223 -};
219 +return unsafe { crate::intrinsics::vtable_align(self.vtable_ptr() as *const ()) };
224 220 }
225 221
226 222 /// Returns the size and alignment together as a `Layout`