Skip to content

Commit

Permalink
Remove unnecessary trim_end_matches('\n')
Browse files Browse the repository at this point in the history
The logging code already does trim_end_matches('\n') so we do not have
to the that in the caller, too.

Signed-off-by: Uli Schlachter <psychon@znc.in>
  • Loading branch information
psychon committed Nov 18, 2023
1 parent 5a0e4c0 commit 6341eb0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -677,10 +677,7 @@ fn configure_terminal(consdev: &str) {
.stderr(Stdio::inherit())
// Replace the current init process with a shell session.
.output();
log!(
"{}",
String::from_utf8_lossy(&output.unwrap().stderr).trim_end_matches('\n')
);
log!("{}", String::from_utf8_lossy(&output.unwrap().stderr));
}
}

Expand Down

0 comments on commit 6341eb0

Please sign in to comment.