mirror of
https://github.com/gitui-org/gitui.git
synced 2026-10-12 02:14:16 +00:00
Fix all mismatched_lifetime_syntaxes warnings (#2727)
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user