Make new clippy happy
This commit is contained in:
@@ -140,8 +140,8 @@ fn main() {
|
|||||||
let split = branch.split_once('/');
|
let split = branch.split_once('/');
|
||||||
|
|
||||||
if split.is_none()
|
if split.is_none()
|
||||||
|| split.unwrap().0.len() == 0
|
|| split.unwrap().0.is_empty()
|
||||||
|| split.unwrap().1.len() == 0
|
|| split.unwrap().1.is_empty()
|
||||||
{
|
{
|
||||||
print_error("Tracking branch needs to match the pattern <remote>/<branch_name>");
|
print_error("Tracking branch needs to match the pattern <remote>/<branch_name>");
|
||||||
process::exit(1);
|
process::exit(1);
|
||||||
|
|||||||
@@ -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
|
/// The bool in the return value specifies whether there is a repository
|
||||||
/// in root itself.
|
/// in root itself.
|
||||||
|
#[allow(clippy::type_complexity)]
|
||||||
fn find_repos(root: &Path) -> Result<Option<(Vec<RepoConfig>, Vec<String>, bool)>, String> {
|
fn find_repos(root: &Path) -> Result<Option<(Vec<RepoConfig>, Vec<String>, bool)>, String> {
|
||||||
let mut repos: Vec<RepoConfig> = Vec::new();
|
let mut repos: Vec<RepoConfig> = Vec::new();
|
||||||
let mut repo_in_root = false;
|
let mut repo_in_root = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user