From 4a9f1bc2787525d666e1716a3606e0d0d04811b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Tue, 21 Dec 2021 16:15:12 +0100 Subject: [PATCH] Make new clippy happy --- src/grm/main.rs | 4 ++-- src/lib.rs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/grm/main.rs b/src/grm/main.rs index 046eb89..4aeaa28 100644 --- a/src/grm/main.rs +++ b/src/grm/main.rs @@ -140,8 +140,8 @@ fn main() { let split = branch.split_once('/'); if split.is_none() - || split.unwrap().0.len() == 0 - || split.unwrap().1.len() == 0 + || split.unwrap().0.is_empty() + || split.unwrap().1.is_empty() { print_error("Tracking branch needs to match the pattern /"); process::exit(1); diff --git a/src/lib.rs b/src/lib.rs index fded766..15af829 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -323,6 +323,7 @@ fn get_actual_git_directory(path: &Path, is_worktree: bool) -> PathBuf { /// /// The bool in the return value specifies whether there is a repository /// in root itself. +#[allow(clippy::type_complexity)] fn find_repos(root: &Path) -> Result, Vec, bool)>, String> { let mut repos: Vec = Vec::new(); let mut repo_in_root = false;