Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: "1.82.0" # STABLE
toolchain: "1.83.0" # STABLE
- uses: Swatinem/rust-cache@v2
- name: Check documentation
env:
Expand All @@ -123,7 +123,7 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: "1.82.0" # STABLE
toolchain: "1.83.0" # STABLE
components: rustfmt
- uses: Swatinem/rust-cache@v2
- name: Check formatting
Expand All @@ -139,7 +139,7 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: "1.82.0" # STABLE
toolchain: "1.83.0" # STABLE
components: clippy
- uses: Swatinem/rust-cache@v2
- name: Install SARIF tools
Expand Down
6 changes: 3 additions & 3 deletions src/hooks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ impl Hooks {
&'t self,
repo: &'t git2::Repository,
changed_refs: &'t [(git2::Oid, git2::Oid, &'t str)],
) -> Result<ReferenceTransaction<'_>, std::io::Error> {
) -> Result<ReferenceTransaction<'t>, std::io::Error> {
self.run_reference_transaction_prepare(repo, changed_refs)?;

Ok(ReferenceTransaction {
Expand Down Expand Up @@ -272,7 +272,7 @@ pub struct ReferenceTransaction<'t> {
changed_refs: &'t [(git2::Oid, git2::Oid, &'t str)],
}

impl<'t> ReferenceTransaction<'t> {
impl ReferenceTransaction<'_> {
pub fn committed(self) {
let Self {
hook,
Expand All @@ -292,7 +292,7 @@ impl<'t> ReferenceTransaction<'t> {
}
}

impl<'t> Drop for ReferenceTransaction<'t> {
impl Drop for ReferenceTransaction<'_> {
fn drop(&mut self) {
self.hook
.run_reference_transaction_aborted(self.repo, self.changed_refs);
Expand Down
Loading