src/bin/proxmox-backup-client.rs: fix remote filename completion

This commit is contained in:
Dietmar Maurer 2019-08-07 06:48:18 +02:00
parent dbed4c8cd7
commit c4f025ebbf

View File

@ -1105,7 +1105,7 @@ fn complete_server_file_name(_arg: &str, param: &HashMap<String, String>) -> Vec
if let Some(list) = data.as_array() {
for item in list {
if let Some(filename) = item.as_str() {
if let Some(filename) = item["filename"].as_str() {
result.push(filename.to_owned());
}
}