diff --git a/git-workon-fixture/src/fixture.rs b/git-workon-fixture/src/fixture.rs index 28f60f8..6e46584 100644 --- a/git-workon-fixture/src/fixture.rs +++ b/git-workon-fixture/src/fixture.rs @@ -2,7 +2,7 @@ use std::path::{Path, PathBuf}; use assert_fs::fixture::ChildPath; use assert_fs::TempDir; -use git2::{Oid, Repository}; +use git2::{Oid, Reference, Repository}; use predicates::Predicate; use crate::assert::{FixtureAssert, IntoFixturePredicate}; @@ -92,7 +92,7 @@ impl Fixture { self.repo.as_ref().ok_or_else(|| "No repository".into()) } - pub fn head(&self) -> Result { + pub fn head<'a>(&'a self) -> Result> { let repo = self.repo()?; Ok(repo.head()?) } diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 5675074..0d8ed42 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "1.87.0" +channel = "1.94.0" components = ["rustfmt", "clippy"]