clippy: is_some/none/ok/err/empty
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
1 parent
397356096a
commit
3984a5fd77
22 files changed
+38
-42
No files matched your search
+2
-2
@@ -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() {
|
||||
|
||||
|
||||
Reference in new issue
Block a user