Make new clippy happy

This commit is contained in:
2021-12-21 16:15:12 +01:00
parent 0b181b9b79
commit 4a9f1bc278
2 changed files with 3 additions and 2 deletions

View File

@@ -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 <remote>/<branch_name>");
process::exit(1);

View File

@@ -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<Option<(Vec<RepoConfig>, Vec<String>, bool)>, String> {
let mut repos: Vec<RepoConfig> = Vec::new();
let mut repo_in_root = false;