Skip to content

Commit

Permalink
utils: update lint settings
Browse files Browse the repository at this point in the history
Unlike the other crates, holo-utils can't inherit the linter settings
from the workspace. This is because holo-utils needs to call the
unsafe `libc::setsockopt` function, whereas the workspace settings
forbid unsafe code altogether.

Currently, it isn't possible to selectively override inherited
lint settings from the workspace. Consequently, this commit syncs
holo-utils with the workspace lint settings, with the exception of
permitting unsafe code.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
  • Loading branch information
rwestphal committed Apr 15, 2024
1 parent 9798566 commit 3178739
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions holo-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ holo-yang = { path = "../holo-yang" }
[lints.rust]
rust_2018_idioms = "warn"

[lints.clippy]
too_many_arguments = "allow"
manual_range_contains = "allow"

[features]
default = []
testing = []

0 comments on commit 3178739

Please sign in to comment.