diff options
author | Roshan George <roshan@safegraph.com> | 2020-01-17 20:03:50 -0800 |
---|---|---|
committer | Roshan George <roshan@safegraph.com> | 2020-01-17 20:03:50 -0800 |
commit | ab392b93a8dfd564eeddc03144cf3401c2342bd6 (patch) | |
tree | 52383192e2c49b93f2342645587a9393df453b3b /src/external.rs | |
parent | c0b1b22e40f908c4dbc759d4a81f096dd4127c4c (diff) |
fixup! Print relative path even above CWD
Diffstat (limited to 'src/external.rs')
-rw-r--r-- | src/external.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/external.rs b/src/external.rs index 5fa7ad7..f0709d4 100644 --- a/src/external.rs +++ b/src/external.rs @@ -174,7 +174,7 @@ pub fn print_relative_path(path: &Path, con: &AppContext) -> io::Result<AppState let canonical_path = path.canonicalize()?; let relative_path = match pathdiff::diff_paths( - canonical_path.clone().as_path(), + canonical_path.as_path(), current_path.as_path()) { None => return Ok(AppStateCmdResult::DisplayError(format!( "Cannot relativize {} against {}", |