Skip to content

Commit

Permalink
thanks clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Feb 22, 2025
1 parent 16a248b commit 9dcfd15
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions gix-ref/src/store/file/find.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,17 +234,17 @@ impl file::Store {
}
Tag | LocalBranch | RemoteBranch | Note => (commondir.into(), name),
MainRef | MainPseudoRef => (commondir.into(), sn),
LinkedRef { name: worktree_name } => sn
.category()
.is_some_and(|cat| cat.is_worktree_private())
.then(|| {
LinkedRef { name: worktree_name } => {
if sn.category().is_some_and(|cat| cat.is_worktree_private()) {
if is_reflog {
(linked_git_dir(worktree_name).into(), sn)
} else {
(commondir.into(), name)
}
})
.unwrap_or((commondir.into(), sn)),
} else {
(commondir.into(), sn)
}
}
PseudoRef | Bisect | Rewritten | WorktreePrivate => (self.git_dir.as_path().into(), name),
}
})
Expand Down
4 changes: 2 additions & 2 deletions gix-traverse/src/commit/simple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ mod init {
/// Create a new instance with commit filtering enabled.
///
/// * `find` - a way to lookup new object data during traversal by their `ObjectId`, writing their data into buffer and returning
/// an iterator over commit tokens if the object is present and is a commit. Caching should be implemented within this function
/// as needed.
/// an iterator over commit tokens if the object is present and is a commit. Caching should be implemented within this function
/// as needed.
/// * `tips`
/// * the starting points of the iteration, usually commits
/// * each commit they lead to will only be returned once, including the tip that started it
Expand Down

0 comments on commit 9dcfd15

Please sign in to comment.