Skip to content

Commit 42ed329

Browse files
committed
Fix new clippy lints
1 parent 830ba4f commit 42ed329

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

peg-macros/analysis.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ impl<'a> LoopNullabilityVisitor<'a> {
259259
ref sep,
260260
} => {
261261
let inner_nullable = self.walk_expr(inner);
262-
let sep_nullable = sep.as_ref().map_or(true, |sep| self.walk_expr(sep));
262+
let sep_nullable = sep.as_ref().is_none_or(|sep| self.walk_expr(sep));
263263

264264
// The entire purpose of this analysis: report errors if the loop body is nullable
265265
if inner_nullable && sep_nullable && !bound.has_upper_bound() {

xtask/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ fn generate_grammar() -> Result<String, Box<dyn std::error::Error>> {
6464

6565
let output = Command::new(cargo)
6666
.current_dir(project_root())
67-
.args(&[
67+
.args([
6868
"run",
6969
"-p",
7070
"peg-macros",

0 commit comments

Comments
 (0)