Skip to content

Commit

Permalink
Forbid calling to_string on &str
Browse files Browse the repository at this point in the history
  • Loading branch information
canac committed Nov 3, 2024
1 parent 43dc365 commit ce86a74
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion cli/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#![warn(clippy::clone_on_ref_ptr, clippy::pedantic, clippy::nursery)]
#![warn(
clippy::clone_on_ref_ptr,
clippy::str_to_string,
clippy::pedantic,
clippy::nursery
)]
#![allow(clippy::future_not_send, clippy::missing_const_for_fn)]

mod cli;
Expand Down
2 changes: 1 addition & 1 deletion database/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![warn(clippy::pedantic, clippy::nursery)]
#![warn(clippy::str_to_string, clippy::pedantic, clippy::nursery)]
#![allow(
clippy::future_not_send,
clippy::missing_const_for_fn,
Expand Down
2 changes: 1 addition & 1 deletion server/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![warn(clippy::pedantic, clippy::nursery)]
#![warn(clippy::str_to_string, clippy::pedantic, clippy::nursery)]

mod cli;

Expand Down

0 comments on commit ce86a74

Please sign in to comment.