Run cargo fmt with new cargo version

This commit is contained in:
2021-12-21 16:15:12 +01:00
parent 6d747d8e89
commit 0b181b9b79
4 changed files with 68 additions and 31 deletions

View File

@@ -139,9 +139,10 @@ fn main() {
Some(branch) => {
let split = branch.split_once('/');
if split.is_none() ||
split.unwrap().0.len() == 0
||split.unwrap().1.len() == 0 {
if split.is_none()
|| split.unwrap().0.len() == 0
|| split.unwrap().1.len() == 0
{
print_error("Tracking branch needs to match the pattern <remote>/<branch_name>");
process::exit(1);
};
@@ -256,7 +257,7 @@ fn main() {
for warning in warnings {
print_warning(&warning);
}
},
}
Err(error) => {
print_error(&format!("Worktree cleanup failed: {}", error));
process::exit(1);