Skip to content

Commit

Permalink
fix: use correct method for printing path
Browse files Browse the repository at this point in the history
  • Loading branch information
brigand committed Jun 4, 2021
1 parent 369cbf6 commit cb92625
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,7 @@ impl Git {
io::Error::new(io::ErrorKind::Other, "failed to get stdout of git diff")
})?;

let message = format!(
"= Contents of {} =",
String::from_utf8_lossy(dir.as_bytes())
);
let message = format!("= Contents of {} =", dir.to_string_lossy());
let prefix = format!(
"{bar}\n{message}\n{bar}\n\n",
message = message,
Expand Down

0 comments on commit cb92625

Please sign in to comment.