Skip to content

Commit

Permalink
Fix cast from PathBuf to String
Browse files Browse the repository at this point in the history
  • Loading branch information
ruieduardolopes committed Jul 29, 2019
1 parent 4b458e4 commit ed4306f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/report/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ pub fn init(ingress: bool, interface: String) -> Logger {
.create(true)
.write(true)
.truncate(true)
.open(&format!("{}/.monet/ingress-{}.log", home, interface))
.open(&format!("{}/.monet/ingress-{}.log", home.display(), interface))
.unwrap()
} else {
OpenOptions::new()
.create(true)
.write(true)
.truncate(true)
.open(&format!("{}/.monet/egress-{}.log", home, interface))
.open(&format!("{}/.monet/egress-{}.log", home.display(), interface))
.unwrap()
};

Expand Down

0 comments on commit ed4306f

Please sign in to comment.