2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-12-22 11:21:24 +00:00
This commit is contained in:
asonix 2024-01-04 10:42:34 -06:00
parent 0f525d7d73
commit 0fd6c459d0
2 changed files with 2 additions and 2 deletions

View file

@ -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();
} }
} }

View file

@ -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