Skip to content

Commit 32917a2

Browse files
committed
style: Make clippy happy
1 parent 6154b08 commit 32917a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/hooks.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ impl Hooks {
155155
&'t self,
156156
repo: &'t git2::Repository,
157157
changed_refs: &'t [(git2::Oid, git2::Oid, &'t str)],
158-
) -> Result<ReferenceTransaction<'_>, std::io::Error> {
158+
) -> Result<ReferenceTransaction<'t>, std::io::Error> {
159159
self.run_reference_transaction_prepare(repo, changed_refs)?;
160160

161161
Ok(ReferenceTransaction {
@@ -272,7 +272,7 @@ pub struct ReferenceTransaction<'t> {
272272
changed_refs: &'t [(git2::Oid, git2::Oid, &'t str)],
273273
}
274274

275-
impl<'t> ReferenceTransaction<'t> {
275+
impl ReferenceTransaction<'_> {
276276
pub fn committed(self) {
277277
let Self {
278278
hook,
@@ -292,7 +292,7 @@ impl<'t> ReferenceTransaction<'t> {
292292
}
293293
}
294294

295-
impl<'t> Drop for ReferenceTransaction<'t> {
295+
impl Drop for ReferenceTransaction<'_> {
296296
fn drop(&mut self) {
297297
self.hook
298298
.run_reference_transaction_aborted(self.repo, self.changed_refs);

0 commit comments

Comments
 (0)