Skip to content

Commit 0eccd73

Browse files
style(clippy): fix clippy::needless_lifetimes
1 parent 08049b0 commit 0eccd73

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/git.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ impl GitRepository {
112112
}
113113
}
114114

115-
impl<'a> GitRepositoryCheckout<'a> {
115+
impl GitRepositoryCheckout<'_> {
116116
pub fn crate_package(
117117
&self,
118118
default_toolchain: &str,
@@ -184,7 +184,7 @@ impl<'a> GitTags<'a> {
184184
}
185185
}
186186

187-
impl<'a> GitTag<'a> {
187+
impl GitTag<'_> {
188188
pub fn commit(&self) -> Result<String> {
189189
let out = Command::new("git")
190190
.arg("rev-list")
@@ -206,21 +206,21 @@ impl<'a> GitTag<'a> {
206206
}
207207
}
208208

209-
impl<'a> PartialEq for GitTag<'a> {
209+
impl PartialEq for GitTag<'_> {
210210
fn eq(&self, other: &Self) -> bool {
211211
self.tag.eq(&other.tag)
212212
}
213213
}
214214

215-
impl<'a> Eq for GitTag<'a> {}
215+
impl Eq for GitTag<'_> {}
216216

217-
impl<'a> PartialOrd for GitTag<'a> {
217+
impl PartialOrd for GitTag<'_> {
218218
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
219219
Some(self.cmp(other))
220220
}
221221
}
222222

223-
impl<'a> Ord for GitTag<'a> {
223+
impl Ord for GitTag<'_> {
224224
fn cmp(&self, other: &Self) -> Ordering {
225225
self.tag.cmp(&other.tag)
226226
}

0 commit comments

Comments
 (0)