Skip to content

Commit

Permalink
Tune lints for 1.72 Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranron committed Sep 7, 2023
1 parent 41524f9 commit 7fd10a6
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 0 deletions.
6 changes: 6 additions & 0 deletions codegen/impl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
clippy::iter_on_single_items,
clippy::iter_with_drain,
clippy::large_include_file,
clippy::large_stack_frames,
clippy::let_underscore_untyped,
clippy::lossy_float_literal,
clippy::manual_clamp,
Expand All @@ -57,6 +58,7 @@
clippy::mutex_atomic,
clippy::mutex_integer,
clippy::needless_collect,
clippy::needless_raw_strings,
clippy::nonstandard_macro_braces,
clippy::option_if_let_else,
clippy::or_fun_call,
Expand All @@ -65,9 +67,11 @@
clippy::pedantic,
clippy::print_stderr,
clippy::print_stdout,
clippy::pub_without_shorthand,
clippy::rc_buffer,
clippy::rc_mutex,
clippy::redundant_clone,
clippy::redundant_type_annotations,
clippy::ref_patterns,
clippy::rest_pat_in_fully_bound_structs,
clippy::same_name_method,
Expand All @@ -89,6 +93,7 @@
clippy::transmute_undefined_repr,
clippy::trivial_regex,
clippy::try_err,
clippy::tuple_array_conversions,
clippy::undocumented_unsafe_blocks,
clippy::unimplemented,
clippy::unnecessary_safety_comment,
Expand All @@ -105,6 +110,7 @@
clippy::verbose_file_reads,
clippy::wildcard_enum_match_arm,
future_incompatible,
invalid_reference_casting,
let_underscore_drop,
meta_variable_misuse,
missing_copy_implementations,
Expand Down
6 changes: 6 additions & 0 deletions codegen/shim/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
clippy::iter_on_single_items,
clippy::iter_with_drain,
clippy::large_include_file,
clippy::large_stack_frames,
clippy::let_underscore_untyped,
clippy::lossy_float_literal,
clippy::manual_clamp,
Expand All @@ -57,6 +58,7 @@
clippy::mutex_atomic,
clippy::mutex_integer,
clippy::needless_collect,
clippy::needless_raw_strings,
clippy::nonstandard_macro_braces,
clippy::option_if_let_else,
clippy::or_fun_call,
Expand All @@ -65,9 +67,11 @@
clippy::pedantic,
clippy::print_stderr,
clippy::print_stdout,
clippy::pub_without_shorthand,
clippy::rc_buffer,
clippy::rc_mutex,
clippy::redundant_clone,
clippy::redundant_type_annotations,
clippy::ref_patterns,
clippy::rest_pat_in_fully_bound_structs,
clippy::same_name_method,
Expand All @@ -89,6 +93,7 @@
clippy::transmute_undefined_repr,
clippy::trivial_regex,
clippy::try_err,
clippy::tuple_array_conversions,
clippy::undocumented_unsafe_blocks,
clippy::unimplemented,
clippy::unnecessary_safety_comment,
Expand All @@ -105,6 +110,7 @@
clippy::verbose_file_reads,
clippy::wildcard_enum_match_arm,
future_incompatible,
invalid_reference_casting,
let_underscore_drop,
meta_variable_misuse,
missing_copy_implementations,
Expand Down
3 changes: 3 additions & 0 deletions codegen/src/es/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ pub const fn concat_slices<T: Copy, const LEN: usize>(
let mut first_elem = None;
while i < input.len() {
total_len += input[i].len();
// error: cannot borrow here, since the borrowed element may contain
// interior mutability
#[allow(clippy::redundant_pattern_matching)]
if matches!(first_elem, None) && total_len > 0 {
first_elem = Some(input[i][0]);
}
Expand Down
6 changes: 6 additions & 0 deletions codegen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
clippy::iter_on_single_items,
clippy::iter_with_drain,
clippy::large_include_file,
clippy::large_stack_frames,
clippy::let_underscore_untyped,
clippy::lossy_float_literal,
clippy::manual_clamp,
Expand All @@ -57,6 +58,7 @@
clippy::mutex_atomic,
clippy::mutex_integer,
clippy::needless_collect,
clippy::needless_raw_strings,
clippy::nonstandard_macro_braces,
clippy::option_if_let_else,
clippy::or_fun_call,
Expand All @@ -65,9 +67,11 @@
clippy::pedantic,
clippy::print_stderr,
clippy::print_stdout,
clippy::pub_without_shorthand,
clippy::rc_buffer,
clippy::rc_mutex,
clippy::redundant_clone,
clippy::redundant_type_annotations,
clippy::ref_patterns,
clippy::rest_pat_in_fully_bound_structs,
clippy::same_name_method,
Expand All @@ -89,6 +93,7 @@
clippy::transmute_undefined_repr,
clippy::trivial_regex,
clippy::try_err,
clippy::tuple_array_conversions,
clippy::undocumented_unsafe_blocks,
clippy::unimplemented,
clippy::unnecessary_safety_comment,
Expand All @@ -105,6 +110,7 @@
clippy::verbose_file_reads,
clippy::wildcard_enum_match_arm,
future_incompatible,
invalid_reference_casting,
let_underscore_drop,
meta_variable_misuse,
missing_copy_implementations,
Expand Down
6 changes: 6 additions & 0 deletions core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
clippy::iter_on_single_items,
clippy::iter_with_drain,
clippy::large_include_file,
clippy::large_stack_frames,
clippy::let_underscore_untyped,
clippy::lossy_float_literal,
clippy::manual_clamp,
Expand All @@ -57,6 +58,7 @@
clippy::mutex_atomic,
clippy::mutex_integer,
clippy::needless_collect,
clippy::needless_raw_strings,
clippy::nonstandard_macro_braces,
clippy::option_if_let_else,
clippy::or_fun_call,
Expand All @@ -65,9 +67,11 @@
clippy::pedantic,
clippy::print_stderr,
clippy::print_stdout,
clippy::pub_without_shorthand,
clippy::rc_buffer,
clippy::rc_mutex,
clippy::redundant_clone,
clippy::redundant_type_annotations,
clippy::ref_patterns,
clippy::rest_pat_in_fully_bound_structs,
clippy::same_name_method,
Expand All @@ -89,6 +93,7 @@
clippy::transmute_undefined_repr,
clippy::trivial_regex,
clippy::try_err,
clippy::tuple_array_conversions,
clippy::undocumented_unsafe_blocks,
clippy::unimplemented,
clippy::unnecessary_safety_comment,
Expand All @@ -105,6 +110,7 @@
clippy::verbose_file_reads,
clippy::wildcard_enum_match_arm,
future_incompatible,
invalid_reference_casting,
let_underscore_drop,
meta_variable_misuse,
missing_copy_implementations,
Expand Down
6 changes: 6 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
clippy::iter_on_single_items,
clippy::iter_with_drain,
clippy::large_include_file,
clippy::large_stack_frames,
clippy::let_underscore_untyped,
clippy::lossy_float_literal,
clippy::manual_clamp,
Expand All @@ -57,6 +58,7 @@
clippy::mutex_atomic,
clippy::mutex_integer,
clippy::needless_collect,
clippy::needless_raw_strings,
clippy::nonstandard_macro_braces,
clippy::option_if_let_else,
clippy::or_fun_call,
Expand All @@ -65,9 +67,11 @@
clippy::pedantic,
clippy::print_stderr,
clippy::print_stdout,
clippy::pub_without_shorthand,
clippy::rc_buffer,
clippy::rc_mutex,
clippy::redundant_clone,
clippy::redundant_type_annotations,
clippy::ref_patterns,
clippy::rest_pat_in_fully_bound_structs,
clippy::same_name_method,
Expand All @@ -89,6 +93,7 @@
clippy::transmute_undefined_repr,
clippy::trivial_regex,
clippy::try_err,
clippy::tuple_array_conversions,
clippy::undocumented_unsafe_blocks,
clippy::unimplemented,
clippy::unnecessary_safety_comment,
Expand All @@ -105,6 +110,7 @@
clippy::verbose_file_reads,
clippy::wildcard_enum_match_arm,
future_incompatible,
invalid_reference_casting,
let_underscore_drop,
meta_variable_misuse,
missing_copy_implementations,
Expand Down

0 comments on commit 7fd10a6

Please sign in to comment.