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;