We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b548ad0 commit ccc2464Copy full SHA for ccc2464
src/config.rs
@@ -81,7 +81,7 @@ pub fn print(program: ProgramInfo) {
81
None => panic!("Cannot get config path"),
82
Some(path) => path,
83
};
84
- let detail = args.iter().find(|&arg| arg == "--detail" || arg == "-d").is_some();
+ let detail = args.iter().any(|arg| arg == "--detail" || arg == "-d");
85
86
println!("Config path: [{}]", path);
87
println!("Projects:");
@@ -106,7 +106,7 @@ pub fn print(program: ProgramInfo) {
106
107
print!("\t\t\t\t{}", name);
108
109
- if detail == true {
+ if detail {
110
let current_branch = git_current_branch(repository.to_path_buf());
111
// TODO properly handle the perfect alignment of the tabs
112
println!(" \t\t-> {}", current_branch);
0 commit comments