Skip to content

Commit

Permalink
Deny clippy::for_kv_map
Browse files Browse the repository at this point in the history
  • Loading branch information
kylerchin committed Apr 12, 2024
1 parent 866f305 commit 4c6d55f
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 9 deletions.
19 changes: 18 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,22 @@ Code should be formatted with `cargo fmt` and be well documented.
The following `cargo clippy` rules are enforced.

```rs
#![deny(clippy::mutable_key_type, clippy::map_entry, clippy::boxed_local, clippy::assigning_clones, clippy::redundant_allocation, bool_comparison, bind_instead_of_map, clippy::vec_box, clippy::while_let_loop, useless_asref, clippy::repeat_once, clippy::deref_addrof, clippy::suspicious_map, clippy::arc_with_non_send_sync, clippy::single_char_pattern)]
#![deny(
clippy::mutable_key_type,
clippy::map_entry,
clippy::boxed_local,
clippy::assigning_clones,
clippy::redundant_allocation,
bool_comparison,
bind_instead_of_map,
clippy::vec_box,
clippy::while_let_loop,
useless_asref,
clippy::repeat_once,
clippy::deref_addrof,
clippy::suspicious_map,
clippy::arc_with_non_send_sync,
clippy::single_char_pattern,
clippy::for_kv_map
)]
```
4 changes: 2 additions & 2 deletions src/alpenrose/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
clippy::while_let_loop,
useless_asref,
clippy::repeat_once,
clippy::clone_on_copy,
clippy::deref_addrof,
clippy::suspicious_map,
clippy::arc_with_non_send_sync,
clippy::single_char_pattern
clippy::single_char_pattern,
clippy::for_kv_map
)]

// https://en.wikipedia.org/wiki/Rhododendron_ferrugineum
Expand Down
3 changes: 2 additions & 1 deletion src/aspen/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
clippy::deref_addrof,
clippy::suspicious_map,
clippy::arc_with_non_send_sync,
clippy::single_char_pattern
clippy::single_char_pattern,
clippy::for_kv_map
)]

mod lib;

Check warning

Code scanning / clippy

found module declaration for lib.rs Warning

found module declaration for lib.rs

Check warning

Code scanning / clippy

found module declaration for lib.rs Warning

found module declaration for lib.rs
Expand Down
3 changes: 2 additions & 1 deletion src/birch/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
clippy::deref_addrof,
clippy::suspicious_map,
clippy::arc_with_non_send_sync,
clippy::single_char_pattern
clippy::single_char_pattern,
clippy::for_kv_map
)]

use actix_web::dev::Service;
Expand Down
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
clippy::deref_addrof,
clippy::suspicious_map,
clippy::arc_with_non_send_sync,
clippy::single_char_pattern
clippy::single_char_pattern,
clippy::for_kv_map
)]

#[macro_use]
Expand Down
3 changes: 2 additions & 1 deletion src/maple/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
clippy::deref_addrof,
clippy::suspicious_map,
clippy::arc_with_non_send_sync,
clippy::single_char_pattern
clippy::single_char_pattern,
clippy::for_kv_map
)]

use catenary::postgres_tools::make_async_pool;
Expand Down
4 changes: 2 additions & 2 deletions src/spruce/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
clippy::while_let_loop,
useless_asref,
clippy::repeat_once,
clippy::clone_on_copy,
clippy::deref_addrof,
clippy::suspicious_map,
clippy::arc_with_non_send_sync,
clippy::single_char_pattern
clippy::single_char_pattern,
clippy::for_kv_map
)]

use actix::ActorContext;
Expand Down

0 comments on commit 4c6d55f

Please sign in to comment.