diff --git a/cli/src/command/list.rs b/cli/src/command/list.rs index a5f34777..95561a9f 100644 --- a/cli/src/command/list.rs +++ b/cli/src/command/list.rs @@ -183,12 +183,11 @@ where header.data_kind(), DataKind::SymbolicLink | DataKind::HardLink ) { - let path = header.path().to_string(); let original = entry .reader(ReadOptions::with_password(password)) .map(|r| io::read_to_string(r).unwrap_or_else(|_| "-".into())) .unwrap_or_default(); - format!("{} -> {}", path, original) + format!("{} -> {}", header.path(), original) } else { header.path().to_string() },