Fix all mismatched_lifetime_syntaxes warnings (#2727)

This commit is contained in:
linkmauve
2025-10-28 16:34:42 +01:00
committed by GitHub
parent 5f23781c10
commit 26a38183cf
26 changed files with 34 additions and 26 deletions
+1
View File
@@ -10,6 +10,7 @@ It wraps libraries like git2 and gix.
#![forbid(missing_docs)]
#![deny(
mismatched_lifetime_syntaxes,
unused_imports,
unused_must_use,
dead_code,
+1 -1
View File
@@ -120,7 +120,7 @@ pub fn get_default_remote(repo_path: &RepoPath) -> Result<String> {
/// and Err if there was a problem finding the branch
fn get_current_branch(
repo: &Repository,
) -> Result<Option<git2::Branch>> {
) -> Result<Option<git2::Branch<'_>>> {
for b in repo.branches(None)? {
let branch = b?.0;
if branch.is_head() {
+1 -1
View File
@@ -62,7 +62,7 @@ pub fn reword(
/// and Err if there was a problem finding the branch
fn get_current_branch(
repo: &Repository,
) -> Result<Option<git2::Branch>> {
) -> Result<Option<git2::Branch<'_>>> {
for b in repo.branches(None)? {
let branch = b?.0;
if branch.is_head() {