Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir/src/lib.rs')
| -rw-r--r-- | crates/hir/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir/src/lib.rs b/crates/hir/src/lib.rs index 31122061a6..bbecc686b6 100644 --- a/crates/hir/src/lib.rs +++ b/crates/hir/src/lib.rs @@ -6849,7 +6849,7 @@ impl<'db> Layout<'db> { .into_iter() .flatten() .chain(iter::once((0, self.0.size.bytes()))) - .array_windows::<2>() + .array_windows() .filter_map(|[(i, start), (_, end)]| { let size = field_size(i)?; end.checked_sub(start)?.checked_sub(size) |