From 29e5434bc24be9d1dadaeffc8d481817a234bf7f Mon Sep 17 00:00:00 2001 From: asonix Date: Sat, 17 Feb 2024 11:26:12 -0600 Subject: [PATCH] Clippy --- src/range.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/range.rs b/src/range.rs index dfcfc35..3b67c10 100644 --- a/src/range.rs +++ b/src/range.rs @@ -44,7 +44,7 @@ pub(crate) async fn chop_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(); } }