elide lifetimes

This commit is contained in:
Josh Junon 2024-03-14 11:54:09 +01:00 committed by GitButler
parent ddee80788b
commit 61db260ac8

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();