mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-12-22 11:21:24 +00:00
Clippy
This commit is contained in:
parent
0f525d7d73
commit
0fd6c459d0
2 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ pub(crate) async fn chop_store<S: Store>(
|
||||||
pub(crate) fn single_bytes_range(range: &Range) -> Option<&ByteRangeSpec> {
|
pub(crate) fn single_bytes_range(range: &Range) -> Option<&ByteRangeSpec> {
|
||||||
if let Range::Bytes(ranges) = range {
|
if let Range::Bytes(ranges) = range {
|
||||||
if ranges.len() == 1 {
|
if ranges.len() == 1 {
|
||||||
return ranges.get(0);
|
return ranges.first();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1146,7 +1146,7 @@ impl HashRepo for SledRepo {
|
||||||
None
|
None
|
||||||
};
|
};
|
||||||
|
|
||||||
let prev = if prev.as_ref() == hashes.get(0) {
|
let prev = if prev.as_ref() == hashes.first() {
|
||||||
None
|
None
|
||||||
} else {
|
} else {
|
||||||
prev
|
prev
|
||||||
|
|
Loading…
Reference in a new issue