From 9719237309b4645812d8544c0f2f3783efc6d6cd Mon Sep 17 00:00:00 2001 From: Samuel Moelius Date: Tue, 10 Dec 2024 06:30:59 -0500 Subject: [PATCH] Change one `map_or` to `is_none_or` --- src/util/common.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/common.rs b/src/util/common.rs index 219e520..0492bbe 100644 --- a/src/util/common.rs +++ b/src/util/common.rs @@ -137,7 +137,7 @@ fn split_escaped(mut s: &str) -> Result> { debug_assert!(v .iter() .position(String::is_empty) - .map_or(true, |i| i == v.len() - 1)); + .is_none_or(|i| i == v.len() - 1)); let c = s.as_bytes()[i];