PR feedback

This commit is contained in:
Jason Shirk 2020-04-09 11:34:17 -07:00
parent 55825f6082
commit 3c087c0f8d
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ anyhow = "1.0.28"
bincode = "1.2.1"
clap = "2.33.0"
dirs = "2.0.2"
dunce = "1.0"
dunce = "1.0.0"
serde = { version = "1.0.106", features = ["derive"] }
structopt = "0.3.12"
uuid = { version = "0.8.1", features = ["v4"] }

View File

@ -144,7 +144,7 @@ impl DB {
continue;
}
};
let path_abs = match dunce::canonicalize(Path::new(path_str)) {
let path_abs = match dunce::canonicalize(path_str) {
Ok(path) => path,
Err(e) => {
eprintln!("invalid path '{}' at line {}: {}", path_str, line_number, e);