mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-11-09 22:14:59 +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> {
|
||||
if let Range::Bytes(ranges) = range {
|
||||
if ranges.len() == 1 {
|
||||
return ranges.get(0);
|
||||
return ranges.first();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1146,7 +1146,7 @@ impl HashRepo for SledRepo {
|
|||
None
|
||||
};
|
||||
|
||||
let prev = if prev.as_ref() == hashes.get(0) {
|
||||
let prev = if prev.as_ref() == hashes.first() {
|
||||
None
|
||||
} else {
|
||||
prev
|
||||
|
|
Loading…
Reference in a new issue