From 0adbf28b5ce549f62035fe0a1c23053cc036dd52 Mon Sep 17 00:00:00 2001 From: Xiretza Date: Sat, 10 Feb 2024 09:20:44 +0000 Subject: [PATCH] Add clippy configuration --- clippy.toml | 1 + src/main.rs | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 clippy.toml diff --git a/clippy.toml b/clippy.toml new file mode 100644 index 0000000..1c385d1 --- /dev/null +++ b/clippy.toml @@ -0,0 +1 @@ +doc-valid-idents = ["LDAP", ".."] diff --git a/src/main.rs b/src/main.rs index 109c641..198eec2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -16,6 +16,9 @@ along with this program. If not, see . */ +#![warn(clippy::pedantic, clippy::as_conversions)] +#![forbid(unsafe_code)] + fn main() { println!("Hello, world!"); }