From 7d86e0701ed60496d3ab6123df57fa3d1ca32ece Mon Sep 17 00:00:00 2001 From: Bryan Gurney Date: Thu, 13 Jul 2023 12:04:06 -0400 Subject: [PATCH] Fix manual_next_back lint error Signed-off-by: Bryan Gurney --- src/engine/strat_engine/backstore/range_alloc.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/engine/strat_engine/backstore/range_alloc.rs b/src/engine/strat_engine/backstore/range_alloc.rs index 456ff0f8bc..da2bdf96b3 100644 --- a/src/engine/strat_engine/backstore/range_alloc.rs +++ b/src/engine/strat_engine/backstore/range_alloc.rs @@ -293,8 +293,7 @@ impl PerDevSegments { assert!(self .used .iter() - .rev() - .next() + .next_back() .map(|(s, l)| *s + *l <= self.limit) .unwrap_or(true)); // The complement really is the complement