Skip to content

Commit a40da0c

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

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

crates/vm/src/vm/mod.rs

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

1035-
let iter = iter.map(|(name, mut module)| {
1035+
iter.map(|(name, mut module)| {
10361036
if let Some(origname) = aliases.get(name) {
10371037
module.origname = *origname;
10381038
}
10391039
(name, module)
1040-
});
1041-
1042-
iter
1040+
})
10431041
}
10441042

10451043
#[test]

0 commit comments

Comments
 (0)