Skip to content

Commit fee3a2c

Browse files
committed
remove intermediate vars
1 parent af41c54 commit fee3a2c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/bin/miri.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,11 @@ fn init_logger() {
4545
let format = |record: &log::LogRecord| {
4646
// prepend spaces to indent the final string
4747
let indentation = log_settings::settings().indentation;
48-
let depth = indentation / NSPACES;
49-
let indentation = indentation % NSPACES;
50-
format!("{lvl}:{module}{depth:2}{indent:<indentation$}{text}",
48+
format!("{lvl}:{module}{depth:2}{indent:<indentation$} {text}",
5149
lvl = record.level(),
5250
module = record.location().module_path(),
53-
depth = depth,
54-
indentation = indentation,
51+
depth = indentation / NSPACES,
52+
indentation = indentation % NSPACES,
5553
indent = "",
5654
text = record.args())
5755
};

0 commit comments

Comments
 (0)