From f63ea9db319cc17a9f59d09ae7ba966284a77827 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Laitl?= Date: Sun, 26 Jan 2025 14:41:20 +0100 Subject: [PATCH] [chore] fix one clippy 1.84 lint --- genapi/src/formula.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/genapi/src/formula.rs b/genapi/src/formula.rs index 44bbc04..a44b26d 100644 --- a/genapi/src/formula.rs +++ b/genapi/src/formula.rs @@ -804,7 +804,7 @@ impl<'a> Lexer<'a> { fn peek_char_raw(&self, c: char, n: usize) -> bool { self.src .get(self.cur + n) - .map_or(false, |next| c == *next as char) + .is_some_and(|next| c == *next as char) } fn sub_string(&self, start_pos: usize, end_pos: usize) -> &str {