Skip to content

Commit ed4f2da

Browse files
committed
Apply cargo clippy
1 parent 313e372 commit ed4f2da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/repo.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,8 @@ pub async fn branch_check(
466466
let commit = {
467467
let repo = resources.repo.lock().await;
468468
let remote_branch_name = format!("origin/{branch_name}");
469-
let c = match repo.find_branch(&remote_branch_name, BranchType::Remote) {
469+
470+
match repo.find_branch(&remote_branch_name, BranchType::Remote) {
470471
Ok(branch) => {
471472
let commit: String = branch.into_reference().peel_to_commit()?.id().to_string();
472473
Some(commit)
@@ -480,8 +481,7 @@ pub async fn branch_check(
480481
);
481482
None
482483
}
483-
};
484-
c
484+
}
485485
};
486486

487487
{

0 commit comments

Comments
 (0)