Skip to content

Commit 7e68c3c

Browse files
committed
Change one map_or to is_none_or
1 parent f6e4e18 commit 7e68c3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ fn split_escaped(mut s: &str) -> Result<Vec<String>> {
137137
debug_assert!(v
138138
.iter()
139139
.position(String::is_empty)
140-
.map_or(true, |i| i == v.len() - 1));
140+
.is_none_or(|i| i == v.len() - 1));
141141

142142
let c = s.as_bytes()[i];
143143

0 commit comments

Comments
 (0)