mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-28 02:29:44 +00:00
Format code
This commit is contained in:
parent
ab424b7205
commit
436fb5ca54
1 changed files with 1 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue