Skip to content

Commit 10eb51a

Browse files
committed
style(clippy): fix latest clippy lints
1 parent d04ff6b commit 10eb51a

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/config.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ impl UpConfig {
102102
debug!("Yaml file was empty, using default config.");
103103
} else {
104104
config_yaml = serde_yaml::from_str::<ConfigYaml>(&config_str)?;
105-
};
105+
}
106106
debug!("Config_yaml: {config_yaml:?}");
107107
}
108108
Some(up_yaml_path)

‎src/tasks/git/checkout.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pub(super) fn checkout_branch(
4040
branch.set_upstream(Some(&branch_target))?;
4141
}
4242
Err(e) => return Err(e.into()),
43-
};
43+
}
4444
match repo.head() {
4545
Ok(current_head) => {
4646
// A branch is currently checked out.

‎src/tasks/git/update.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ pub(crate) fn real_update(git_config: &GitConfig) -> Result<bool> {
208208
return Err(e.into());
209209
}
210210
}
211-
};
211+
}
212212
drop(default_remote); // Can't mutably use repo while this value is around.
213213
if !newly_created_repo {
214214
warn_for_unpushed_changes(&mut repo, &user_git_config)?;
@@ -306,7 +306,7 @@ fn set_up_remote(repo: &Repository, remote_config: &GitRemote) -> Result<bool> {
306306
);
307307
if set_remote_head(repo, &remote, &default_branch)? {
308308
did_work = true;
309-
};
309+
}
310310
Ok(did_work)
311311
}
312312

0 commit comments

Comments
 (0)