Skip to content

Commit

Permalink
numfmt: fix merge conflict and align prints
Browse files Browse the repository at this point in the history
  • Loading branch information
sbentmar committed Jan 28, 2023
1 parent 6b8cb22 commit 9664e3e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/uu/numfmt/src/numfmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ where
for (idx, line_result) in input.lines().by_ref().enumerate() {
match line_result {
Ok(line) if idx < options.header => {
println!("{}", line);
println!("{line}");
Ok(())
}
Ok(line) => format_and_handle_validation(line.as_ref(), options),
Expand All @@ -64,14 +64,14 @@ fn format_and_handle_validation(input_line: &str, options: &NumfmtOptions) -> UR
}
InvalidModes::Fail => {
show!(NumfmtError::FormattingError(error_message));
println!("{}", input_line);
println!("{input_line}");
}
InvalidModes::Ignore => {
println!("{}", input_line);
println!("{input_line}");
}
InvalidModes::Warn => {
show_error!("{}", error_message);
println!("{}", input_line);
println!("{input_line}");
}
};
}
Expand Down

0 comments on commit 9664e3e

Please sign in to comment.