Skip to content

Commit

Permalink
Tune lints for 1.63 Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranron committed Aug 12, 2022
1 parent 119fb60 commit 3dc3236
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions codegen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
clippy::float_cmp_const,
clippy::fn_to_numeric_cast,
clippy::fn_to_numeric_cast_any,
clippy::format_push_string,
clippy::get_unwrap,
clippy::if_then_some_else_none,
clippy::imprecise_flops,
Expand Down
2 changes: 1 addition & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ impl<L: Args, R: Args> Compose<L, R> {
#[allow(clippy::missing_const_for_fn)] // false positive: drop in const
#[must_use]
pub fn into_inner(self) -> (L, R) {
let Compose { left, right } = self;
let Self { left, right } = self;
(left, right)
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/cucumber.rs
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ where
where
CustomCli: clap::Args,
{
let Cucumber {
let Self {
parser,
runner,
writer,
Expand Down Expand Up @@ -727,7 +727,7 @@ where
)
};

let Cucumber {
let Self {
parser,
runner,
mut writer,
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
clippy::float_cmp_const,
clippy::fn_to_numeric_cast,
clippy::fn_to_numeric_cast_any,
clippy::format_push_string,
clippy::get_unwrap,
clippy::if_then_some_else_none,
clippy::imprecise_flops,
Expand Down

0 comments on commit 3dc3236

Please sign in to comment.