From 31787397c0137b12b917b2ecd86b9390c17b639f Mon Sep 17 00:00:00 2001 From: Renato Westphal Date: Mon, 15 Apr 2024 20:19:51 -0300 Subject: [PATCH] utils: update lint settings 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 --- holo-utils/Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/holo-utils/Cargo.toml b/holo-utils/Cargo.toml index 0dcc360d..514d22c9 100644 --- a/holo-utils/Cargo.toml +++ b/holo-utils/Cargo.toml @@ -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 = []