Skip to content

Commit

Permalink
fix clippy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ascandone committed Sep 8, 2024
1 parent e4a578a commit 8b63e33
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions compiler-cli/src/dependencies.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,8 @@ async fn add_missing_packages<Telem: Telemetry>(
let mut missing_hex_packages = missing_packages
.into_iter()
.filter(|package| package.is_hex())
.map(|package| {
.inspect(|_| {
num_to_download += 1;
package
})
.peekable();

Expand Down
2 changes: 1 addition & 1 deletion compiler-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
clippy::needless_continue,
clippy::needless_borrow,
clippy::match_wildcard_for_single_variants,
clippy::mismatched_target_os,
clippy::match_on_vec_items,
clippy::imprecise_flops,
clippy::suboptimal_flops,
Expand All @@ -27,6 +26,7 @@
trivial_casts,
trivial_numeric_casts,
nonstandard_style,
unexpected_cfgs,
unused_import_braces,
unused_qualifications
)]
Expand Down
3 changes: 1 addition & 2 deletions compiler-core/src/javascript/expression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1606,9 +1606,8 @@ fn construct_record<'a>(
) -> Document<'a> {
let mut any_arguments = false;
let arguments = join(
arguments.into_iter().map(|a| {
arguments.into_iter().inspect(|_| {
any_arguments = true;
a
}),
break_(",", ", "),
);
Expand Down
2 changes: 1 addition & 1 deletion compiler-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
clippy::needless_continue,
clippy::needless_borrow,
clippy::match_wildcard_for_single_variants,
clippy::mismatched_target_os,
clippy::match_on_vec_items,
clippy::imprecise_flops,
clippy::suboptimal_flops,
Expand All @@ -28,6 +27,7 @@
trivial_casts,
trivial_numeric_casts,
nonstandard_style,
unexpected_cfgs,
unused_import_braces,
unused_qualifications,
)]
Expand Down

0 comments on commit 8b63e33

Please sign in to comment.