Format code

This commit is contained in:
Laurențiu Nicola 2025-10-02 07:16:40 +03:00
parent ab424b7205
commit 436fb5ca54

View file

@ -2136,9 +2136,7 @@ impl<'db> Evaluator<'db> {
return Ok(Some((0, 1))); return Ok(Some((0, 1)));
} }
let layout = layout?; let layout = layout?;
Ok(layout Ok(layout.is_sized().then(|| (layout.size.bytes_usize(), layout.align.bytes() as usize)))
.is_sized()
.then(|| (layout.size.bytes_usize(), layout.align.bytes() as usize)))
} }
/// A version of `self.size_of` which returns error if the type is unsized. `what` argument should /// A version of `self.size_of` which returns error if the type is unsized. `what` argument should