Skip to content

Commit b494d3e

Browse files
committed
Avoid unnecessary mut-ness for various closures.
1 parent 69402da commit b494d3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pub(crate) fn codegen_fn<'tcx>(
4646
with_no_trimmed_paths!({
4747
use rustc_middle::mir::pretty;
4848
let options = pretty::PrettyPrintMirOptions::from_cli(tcx);
49-
pretty::write_mir_fn(tcx, mir, &mut |_, _| Ok(()), &mut buf, options).unwrap();
49+
pretty::write_mir_fn(tcx, mir, &|_, _| Ok(()), &mut buf, options).unwrap();
5050
});
5151
String::from_utf8_lossy(&buf).into_owned()
5252
});

0 commit comments

Comments
 (0)