From acaa855232207eec7c8db6b1d18e62983c17923a Mon Sep 17 00:00:00 2001 From: Artem Goncharov Date: Mon, 10 Nov 2025 09:24:39 +0100 Subject: [PATCH] chore: Forbid unsafe code with a global lint Add a global lint prohibiting use of unsafe code. Luckily we have no unsafe code anyway. Fixes: #328 --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 196b6494..1bd70afe 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -114,6 +114,10 @@ name = "functional" path = "tests/functional/main.rs" test = false +[lints.rust] +unsafe_code = "forbid" + [lints.clippy] unwrap_used = "deny" expect_used = "deny" +enum_glob_use = "deny"