Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/formatting/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ fn format_inner_with_options(contents: &[u8], config: &Config) -> Result<Vec<u8>
let mut working_set = StateWorkingSet::new(&engine_state);

let parsed_block = parse(&mut working_set, None, contents, false);
trace!("parsed block:\n{:?}", &parsed_block);
trace!("parsed block:\n{:?}", parsed_block);

let source_text = String::from_utf8_lossy(contents);
let mut malformed_spans: Vec<Span> = working_set
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ fn main() {
let config = match load_config(cli.config) {
Ok(config) => config,
Err(err) => {
eprintln!("{}: {}", Color::LightRed.paint("error"), &err);
eprintln!("{}: {}", Color::LightRed.paint("error"), err);
exit_with_code(ExitCode::Failure);
}
};
Expand Down Expand Up @@ -240,7 +240,7 @@ fn format_files(
files
.into_par_iter()
.map(|file| {
info!("formatting file: {:?}", &file);
info!("formatting file: {:?}", file);
nu_formatter::format_single_file(file, config, mode)
})
.collect()
Expand Down
Loading