We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab424b7 commit 436fb5cCopy full SHA for 436fb5c
crates/hir-ty/src/mir/eval.rs
@@ -2136,9 +2136,7 @@ impl<'db> Evaluator<'db> {
2136
return Ok(Some((0, 1)));
2137
}
2138
let layout = layout?;
2139
- Ok(layout
2140
- .is_sized()
2141
- .then(|| (layout.size.bytes_usize(), layout.align.bytes() as usize)))
+ Ok(layout.is_sized().then(|| (layout.size.bytes_usize(), layout.align.bytes() as usize)))
2142
2143
2144
/// A version of `self.size_of` which returns error if the type is unsized. `what` argument should
0 commit comments