summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-09-12 16:15:46 +0000
committerLars Wirzenius <liw@liw.fi>2020-09-12 16:15:46 +0000
commitd4e8b0409d6bc99522a6a995349e9779b9c9cd62 (patch)
tree1f3a846448a2fcb943e805c58ac371ee0ea59bb7
parent33683712604607d85f20cbf93a7ac904552f4979 (diff)
downloadjt2-d4e8b0409d6bc99522a6a995349e9779b9c9cd62.tar.gz
Apply 1 suggestion(s) to 1 file(s)
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 0a7efe1..4e0a887 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -48,7 +48,7 @@ fn init(dirname: &Path, _journalname: &str, _description: &str) -> anyhow::Resul
fn is_journal(dirname: &Path) -> anyhow::Result<()> {
let meta = fs::symlink_metadata(dirname)?;
if !meta.is_dir() {
- return Err(JournalError::NotAJournal(dirname.to_string_lossy().to_string()).into());
+ return Err(JournalError::NotAJournal(dirname.display().to_string()).into());
}
Ok(())
}