Skip to content

Commit

Permalink
fix: avoid printing newline for graveyard subcommand
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Apr 22, 2024
1 parent 9a33b9e commit bc8315d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ fn main() -> ExitCode {
if *seance {
let cwd = &env::current_dir().unwrap();
let gravepath = util::join_absolute(graveyard, dunce::canonicalize(cwd).unwrap());
println!("{}", gravepath.display());
print!("{}", gravepath.display());
} else {
println!("{}", graveyard.display());
print!("{}", graveyard.display());
}
}
None => {
Expand Down
4 changes: 2 additions & 2 deletions tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -688,9 +688,9 @@ fn test_graveyard_subcommand(#[values(false, true)] seance: bool) {
let expected_gravepath =
util::join_absolute(&expected_graveyard, dunce::canonicalize(cwd).unwrap());
let expected_str = if seance {
format!("{}\n", expected_gravepath.display())
format!("{}", expected_gravepath.display())
} else {
format!("{}\n", expected_graveyard.display())
format!("{}", expected_graveyard.display())
};
let mut args = vec!["graveyard"];
if seance {
Expand Down

0 comments on commit bc8315d

Please sign in to comment.