Skip to content

Commit 13a99d1

Browse files
committed
Bump lints toolchain version / fix clippy warnings
Signed-off-by: Etienne Champetier <[email protected]>
1 parent 0bbfb94 commit 13a99d1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ concurrency:
1818
env:
1919
CARGO_TERM_COLOR: always
2020
# Pinned toolchain for linting
21-
ACTIONS_LINTS_TOOLCHAIN: 1.76.0
21+
ACTIONS_LINTS_TOOLCHAIN: 1.86.0
2222

2323
jobs:
2424
tests-stable:

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ pub struct BlobWriter<'a> {
145145
size: u64,
146146
}
147147

148-
impl<'a> Debug for BlobWriter<'a> {
148+
impl Debug for BlobWriter<'_> {
149149
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
150150
f.debug_struct("BlobWriter")
151151
.field("target", &self.target)
@@ -698,7 +698,7 @@ impl<'a> BlobWriter<'a> {
698698
}
699699
}
700700

701-
impl<'a> std::io::Write for BlobWriter<'a> {
701+
impl std::io::Write for BlobWriter<'_> {
702702
fn write(&mut self, srcbuf: &[u8]) -> std::io::Result<usize> {
703703
self.hash.update(srcbuf)?;
704704
self.target
@@ -735,7 +735,7 @@ impl<'a> GzipLayerWriter<'a> {
735735
}
736736
}
737737

738-
impl<'a> std::io::Write for GzipLayerWriter<'a> {
738+
impl std::io::Write for GzipLayerWriter<'_> {
739739
fn write(&mut self, data: &[u8]) -> std::io::Result<usize> {
740740
self.0.write(data)
741741
}
@@ -781,7 +781,7 @@ impl<'a> ZstdLayerWriter<'a> {
781781
}
782782

783783
#[cfg(feature = "zstd")]
784-
impl<'a> std::io::Write for ZstdLayerWriter<'a> {
784+
impl std::io::Write for ZstdLayerWriter<'_> {
785785
fn write(&mut self, data: &[u8]) -> std::io::Result<usize> {
786786
self.0.write(data)
787787
}

0 commit comments

Comments
 (0)