From 0fcf852b72a4749feaa540c65d09cbfbd4542d47 Mon Sep 17 00:00:00 2001 From: Michael Sippel Date: Wed, 17 Feb 2021 18:21:26 +0100 Subject: [PATCH] sequence.flatten: remove unnecessary mut --- src/sequence/flatten.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sequence/flatten.rs b/src/sequence/flatten.rs index b2a711e..713b57e 100644 --- a/src/sequence/flatten.rs +++ b/src/sequence/flatten.rs @@ -208,7 +208,7 @@ where V1: SequenceView> + ?Sized + 'static, let top_len = self.top.read().unwrap().view.len().unwrap_or(0); let first_chunk = self.chunks.get(&start_idx).unwrap().read().unwrap(); - let mut start_offset = first_chunk.offset + first_chunk.view.len().unwrap_or(0); + let start_offset = first_chunk.offset + first_chunk.view.len().unwrap_or(0); let mut cur_offset = start_offset; let mut dirty_idx = Vec::new();