Skip to content

Commit 0581f98

Browse files
committed
1 parent 2116af5 commit 0581f98

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,9 @@ impl<'a> TypeLayoutGraph<'a> {
375375

376376
while i < self.tys.len() {
377377
// The first free slot can be used to insert the ty
378-
let Some(cached_ty) = self.tys[i] else {
378+
let cached_ty = if let Some(cached_ty) = self.tys[i] {
379+
cached_ty
380+
} else {
379381
self.tys[i] = Some(ty);
380382

381383
return true;

0 commit comments

Comments
 (0)