Skip to content

Commit 6a63baa

Browse files
author
“ramfox”
committed
clippy
1 parent f7a44d4 commit 6a63baa

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

src/hash.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ impl FromStr for HashAndFormat {
377377
hex::decode_to_slice(s, &mut hash)?;
378378
Ok(Self::raw(hash.into()))
379379
}
380-
65 if s[0].to_ascii_lowercase() == b's' => {
380+
65 if s[0].eq_ignore_ascii_case(&b's') => {
381381
hex::decode_to_slice(&s[1..], &mut hash)?;
382382
Ok(Self::hash_seq(hash.into()))
383383
}

src/provider.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,7 @@ impl<'a, R: AsyncSliceReader, F: Fn(u64) -> Event> SendingSliceReader<'a, R, F>
334334
}
335335
}
336336

337-
impl<'a, R: AsyncSliceReader, F: Fn(u64) -> Event> AsyncSliceReader
338-
for SendingSliceReader<'a, R, F>
339-
{
337+
impl<R: AsyncSliceReader, F: Fn(u64) -> Event> AsyncSliceReader for SendingSliceReader<'_, R, F> {
340338
async fn read_at(&mut self, offset: u64, len: usize) -> std::io::Result<bytes::Bytes> {
341339
let res = self.inner.read_at(offset, len).await;
342340
if let Ok(res) = res.as_ref() {

src/store/fs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1468,8 +1468,8 @@ impl super::Store for Store {
14681468
}
14691469
}
14701470

1471-
pub(super) async fn gc_sweep_task<'a>(
1472-
store: &'a Store,
1471+
pub(super) async fn gc_sweep_task(
1472+
store: &Store,
14731473
live: &BTreeSet<Hash>,
14741474
co: &Co<GcSweepEvent>,
14751475
) -> anyhow::Result<()> {

src/store/traits.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -671,8 +671,8 @@ pub(super) async fn gc_mark_task<'a>(
671671
Ok(())
672672
}
673673

674-
async fn gc_sweep_task<'a>(
675-
store: &'a impl Store,
674+
async fn gc_sweep_task(
675+
store: &impl Store,
676676
live: &BTreeSet<Hash>,
677677
co: &Co<GcSweepEvent>,
678678
) -> anyhow::Result<()> {

0 commit comments

Comments
 (0)