Skip to content

Commit aa077fe

Browse files
committed
Reformat the code with rustfmt
1 parent 592f00e commit aa077fe

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

src/logging.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use simplelog::{ColorChoice, ConfigBuilder, LevelFilter, TerminalMode, TermLogger};
1+
use simplelog::{ColorChoice, ConfigBuilder, LevelFilter, TermLogger, TerminalMode};
22

33
/// This function initializes the `simplelog` logging system, which plugs into the `log`
44
/// infrastructure. The function returns nothing. It only affects the global state when it runs.
@@ -26,6 +26,7 @@ pub fn initialize_logger(verbose: bool, quiet: bool) {
2626
// Mixed mode prints errors to stderr and info to stdout. Not sure about the other levels.
2727
TerminalMode::Mixed,
2828
// Try to use color if possible.
29-
ColorChoice::Auto
30-
).expect("Failed to configure the terminal logging.");
29+
ColorChoice::Auto,
30+
)
31+
.expect("Failed to configure the terminal logging.");
3132
}

src/module.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,14 @@ impl From<Input> for Module {
344344
debug!("ID: {}", &module.id);
345345
debug!("File name: {}", &module.file_name);
346346
debug!("Include statement: {}", &module.include_statement);
347-
debug!("Included modules: {}", if let Some(includes) = &module.includes {includes.join(", ")} else {"none".to_string()} );
347+
debug!(
348+
"Included modules: {}",
349+
if let Some(includes) = &module.includes {
350+
includes.join(", ")
351+
} else {
352+
"none".to_string()
353+
}
354+
);
348355

349356
module
350357
}

0 commit comments

Comments
 (0)