Skip to content

Commit 5a11df2

Browse files
committed
Tune lints for 1.90 Rust
1 parent 718aa2d commit 5a11df2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

codegen/src/attribute.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,7 @@ impl Step {
302302
let (ident, ty) = parse_fn_arg(arg)?;
303303

304304
let is_ctx_arg =
305-
self.arg_name_of_step_context.as_ref().map(|i| *i == *ident)
306-
== Some(true);
305+
self.arg_name_of_step_context.as_ref().is_some_and(|i| i == ident);
307306

308307
let decl = if is_ctx_arg {
309308
quote! {

src/runner/basic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ impl RetryOptions {
188188

189189
apply_cli(
190190
parse_tags(&scenario.tags)
191-
.or_else(|| rule.and_then(|r| parse_tags(&r.tags)))
191+
.or_else(|| parse_tags(&rule?.tags))
192192
.or_else(|| parse_tags(&feature.tags)),
193193
)
194194
}

0 commit comments

Comments
 (0)