add unsafe and clippy warnings to Cargo.toml
This commit is contained in:
parent
660f7edb75
commit
f3fbee81c0
1 changed files with 11 additions and 0 deletions
11
Cargo.toml
11
Cargo.toml
|
@ -3,6 +3,17 @@ name = "sn-client"
|
|||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[lints.rust]
|
||||
unsafe_code = "forbid"
|
||||
|
||||
[lints.clippy]
|
||||
std_instead_of_core = "warn"
|
||||
str_to_string = "warn"
|
||||
string_to_string = "warn"
|
||||
semicolon_if_nothing_returned = "warn"
|
||||
wildcard_imports = "warn"
|
||||
inefficient_to_string = "warn"
|
||||
|
||||
[dependencies]
|
||||
i18n-embed-fl = { version = "0.8.0", default-features = false }
|
||||
rust-embed = { version = "8", default-features = false }
|
||||
|
|
Loading…
Add table
Reference in a new issue