Skip to content

Commit 873c7f2

Browse files
Copilotyouknowone
andcommitted
Fix clippy warning in frozen origname handling
Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com>
1 parent 6af48b2 commit 873c7f2

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

crates/vm/src/vm/mod.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,14 +1050,12 @@ fn core_frozen_inits() -> impl Iterator<Item = (&'static str, FrozenModule)> {
10501050
])
10511051
});
10521052

1053-
let iter = iter.map(|(name, mut module)| {
1053+
iter.map(|(name, mut module)| {
10541054
if let Some(origname) = aliases.get(name) {
10551055
module.origname = *origname;
10561056
}
10571057
(name, module)
1058-
});
1059-
1060-
iter
1058+
})
10611059
}
10621060

10631061
#[test]

0 commit comments

Comments
 (0)