Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
yottalogical committed Jul 9, 2024
1 parent 0ecec55 commit a1b4182
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ fn main() {

safe_rebase(
repo_path.as_deref(),
upstream.as_ref().map(String::as_str),
branch.as_ref().map(String::as_str),
upstream.as_deref(),
branch.as_deref(),
interactive,
onto.as_ref().map(String::as_str),
onto.as_deref(),
);
}
6 changes: 1 addition & 5 deletions src/safe_rebase.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,7 @@ fn get_prefetch_reference<'repo>(
.unwrap()
}

fn get_commits_to_rebase<'repo>(
repo: &'repo Repository,
upstream: &Reference,
branch: &Branch,
) -> HashSet<Oid> {
fn get_commits_to_rebase(repo: &Repository, upstream: &Reference, branch: &Branch) -> HashSet<Oid> {
let mut revwalk = repo.revwalk().unwrap();
revwalk
.push(branch.get().peel_to_commit().unwrap().id())
Expand Down

0 comments on commit a1b4182

Please sign in to comment.