We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 718aa2d commit 5a11df2Copy full SHA for 5a11df2
codegen/src/attribute.rs
@@ -302,8 +302,7 @@ impl Step {
302
let (ident, ty) = parse_fn_arg(arg)?;
303
304
let is_ctx_arg =
305
- self.arg_name_of_step_context.as_ref().map(|i| *i == *ident)
306
- == Some(true);
+ self.arg_name_of_step_context.as_ref().is_some_and(|i| i == ident);
307
308
let decl = if is_ctx_arg {
309
quote! {
src/runner/basic.rs
@@ -188,7 +188,7 @@ impl RetryOptions {
188
189
apply_cli(
190
parse_tags(&scenario.tags)
191
- .or_else(|| rule.and_then(|r| parse_tags(&r.tags)))
+ .or_else(|| parse_tags(&rule?.tags))
192
.or_else(|| parse_tags(&feature.tags)),
193
)
194
}
0 commit comments