Skip to content

Commit

Permalink
remove intermediate vars
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Jun 1, 2016
1 parent af41c54 commit fee3a2c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/bin/miri.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,11 @@ fn init_logger() {
let format = |record: &log::LogRecord| {
// prepend spaces to indent the final string
let indentation = log_settings::settings().indentation;
let depth = indentation / NSPACES;
let indentation = indentation % NSPACES;
format!("{lvl}:{module}{depth:2}{indent:<indentation$}{text}",
format!("{lvl}:{module}{depth:2}{indent:<indentation$} {text}",
lvl = record.level(),
module = record.location().module_path(),
depth = depth,
indentation = indentation,
depth = indentation / NSPACES,
indentation = indentation % NSPACES,
indent = "",
text = record.args())
};
Expand Down

0 comments on commit fee3a2c

Please sign in to comment.