diff --git a/src/category.rs b/src/category.rs index adf96869e76..9ad8fdd3c97 100644 --- a/src/category.rs +++ b/src/category.rs @@ -79,7 +79,7 @@ impl Category { .cloned() .collect(); - if to_rm.len() > 0 { + if !to_rm.is_empty() { try!(conn.execute("DELETE FROM crates_categories \ WHERE category_id = ANY($1) \ AND crate_id = $2",