clippy: is_some/none/ok/err/empty

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler
2021-01-19 10:27:59 +01:00
parent 397356096a
commit 3984a5fd77
22 changed files with 38 additions and 42 deletions

View File

@ -13,7 +13,7 @@ fn verify_object_schema(schema: &ObjectSchema) -> Result<(), Error> {
let map = schema.properties;
if map.len() >= 1 {
if !map.is_empty() {
for i in 1..map.len() {
@ -125,7 +125,7 @@ fn verify_dirmap(
dirmap: SubdirMap,
) -> Result<(), Error> {
if dirmap.len() >= 1 {
if !dirmap.is_empty() {
for i in 1..dirmap.len() {