Skip to content

Commit

Permalink
Change one map_or to is_none_or
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Dec 10, 2024
1 parent f6e4e18 commit 7e68c3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ fn split_escaped(mut s: &str) -> Result<Vec<String>> {
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];

Expand Down

0 comments on commit 7e68c3c

Please sign in to comment.