Merge pull request #3145 from gitbutlerapp/elide-lifetimes

elide lifetimes
This commit is contained in:
Josh Junon 2024-03-14 12:14:42 +01:00 committed by GitHub
commit f6941c3cb0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -386,7 +386,7 @@ impl Repository {
} }
} }
pub fn checkout_index_path<'a, P: AsRef<Path>>(&'a self, path: P) -> Result<()> { pub fn checkout_index_path<P: AsRef<Path>>(&self, path: P) -> Result<()> {
let mut builder = git2::build::CheckoutBuilder::new(); let mut builder = git2::build::CheckoutBuilder::new();
builder.path(path.as_ref()); builder.path(path.as_ref());
builder.force(); builder.force();