catalog_shell: fix several clippy warnings

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
Christian Ebner
2019-11-26 14:32:48 +01:00
committed by Dietmar Maurer
parent 6486cb853f
commit 314bb35868
2 changed files with 26 additions and 29 deletions

View File

@ -1770,7 +1770,7 @@ async fn catalog_shell(param: Value) -> Result<Value, Error> {
}))).await?;
let list = result["data"].as_array().unwrap();
if list.len() == 0 {
if list.is_empty() {
bail!("backup group '{}' does not contain any snapshots:", path);
}