Skip to content

Commit

Permalink
Tune lints for 1.76 Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranron committed Feb 9, 2024
1 parent 40f704b commit 679922f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
5 changes: 4 additions & 1 deletion codegen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@
clippy::format_push_string,
clippy::get_unwrap,
clippy::if_then_some_else_none,
clippy::implied_bounds_in_impls,
clippy::imprecise_flops,
clippy::index_refutable_slice,
clippy::infinite_loop,
clippy::iter_on_empty_collections,
clippy::iter_on_single_items,
clippy::iter_over_hash_type,
clippy::iter_with_drain,
clippy::large_include_file,
clippy::large_stack_frames,
Expand Down Expand Up @@ -101,6 +102,7 @@
clippy::try_err,
clippy::undocumented_unsafe_blocks,
clippy::unimplemented,
clippy::uninhabited_references,
clippy::unnecessary_safety_comment,
clippy::unnecessary_safety_doc,
clippy::unnecessary_self_imports,
Expand All @@ -121,6 +123,7 @@
missing_debug_implementations,
missing_docs,
semicolon_in_expressions_from_macros,
unit_bindings,
unreachable_pub,
unused_crate_dependencies,
unused_extern_crates,
Expand Down
5 changes: 4 additions & 1 deletion core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,12 @@
clippy::format_push_string,
clippy::get_unwrap,
clippy::if_then_some_else_none,
clippy::implied_bounds_in_impls,
clippy::imprecise_flops,
clippy::index_refutable_slice,
clippy::infinite_loop,
clippy::iter_on_empty_collections,
clippy::iter_on_single_items,
clippy::iter_over_hash_type,
clippy::iter_with_drain,
clippy::large_include_file,
clippy::large_stack_frames,
Expand Down Expand Up @@ -102,6 +103,7 @@
clippy::try_err,
clippy::undocumented_unsafe_blocks,
clippy::unimplemented,
clippy::uninhabited_references,
clippy::unnecessary_safety_comment,
clippy::unnecessary_safety_doc,
clippy::unnecessary_self_imports,
Expand All @@ -122,6 +124,7 @@
missing_debug_implementations,
missing_docs,
semicolon_in_expressions_from_macros,
unit_bindings,
unreachable_pub,
unused_crate_dependencies,
unused_extern_crates,
Expand Down
3 changes: 3 additions & 0 deletions core/src/parse/attrs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ pub mod field {
Self: TryApply<V, kind::Nested, D>,
{
fn try_apply_self(&mut self, another: Self) -> syn::Result<()> {
#[allow(clippy::iter_over_hash_type)] // order doesn't matter
for val in another {
self.try_apply(val)?;
}
Expand Down Expand Up @@ -487,6 +488,7 @@ pub mod field {
Self: TryApply<V, kind::Value, D>,
{
fn try_apply_self(&mut self, another: Self) -> syn::Result<()> {
#[allow(clippy::iter_over_hash_type)] // order doesn't matter
for val in another {
self.try_apply(val)?;
}
Expand Down Expand Up @@ -651,6 +653,7 @@ pub mod field {
Self: TryApply<(K, V), kind::Map, D>,
{
fn try_apply_self(&mut self, another: Self) -> syn::Result<()> {
#[allow(clippy::iter_over_hash_type)] // order doesn't matter
for val in another {
self.try_apply(val)?;
}
Expand Down
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,12 @@
clippy::format_push_string,
clippy::get_unwrap,
clippy::if_then_some_else_none,
clippy::implied_bounds_in_impls,
clippy::imprecise_flops,
clippy::index_refutable_slice,
clippy::infinite_loop,
clippy::iter_on_empty_collections,
clippy::iter_on_single_items,
clippy::iter_over_hash_type,
clippy::iter_with_drain,
clippy::large_include_file,
clippy::large_stack_frames,
Expand Down Expand Up @@ -102,6 +103,7 @@
clippy::try_err,
clippy::undocumented_unsafe_blocks,
clippy::unimplemented,
clippy::uninhabited_references,
clippy::unnecessary_safety_comment,
clippy::unnecessary_safety_doc,
clippy::unnecessary_self_imports,
Expand All @@ -122,6 +124,7 @@
missing_debug_implementations,
missing_docs,
semicolon_in_expressions_from_macros,
unit_bindings,
unreachable_pub,
unused_crate_dependencies,
unused_extern_crates,
Expand Down

0 comments on commit 679922f

Please sign in to comment.