Skip to content

Commit 5c0cdfa

Browse files
committed
Fix clippy warning
1 parent 741188d commit 5c0cdfa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpp_build/src/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ fn find_delimited<'a>(mut input: Cursor<'a>, needle: &str) -> PResult<'a, ()> {
259259
}
260260
if stack.is_empty() && input.starts_with(needle) {
261261
return Ok((input, ()));
262-
} else if stack.last().map_or(false, |x| input.starts_with(x)) {
262+
} else if stack.last().is_some_and(|x| input.starts_with(x)) {
263263
stack.pop();
264264
} else if input.starts_with("(") {
265265
stack.push(")");

0 commit comments

Comments
 (0)