Clippy
Some checks failed
/ check (x86_64-unknown-linux-musl) (push) Waiting to run
/ clippy (push) Successful in 1m33s
/ tests (push) Successful in 1m34s
/ check (aarch64-unknown-linux-musl) (push) Has been cancelled
/ check (armv7-unknown-linux-musleabihf) (push) Has been cancelled

This commit is contained in:
asonix 2024-02-17 11:26:12 -06:00
parent 0972154ab5
commit 29e5434bc2

View file

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