From fa71ab6d461850575a0079a8425877f8f3c556da Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sun, 25 Aug 2024 21:57:04 +0900 Subject: [PATCH] Apply deprecated_safe lint --- .clippy.toml | 2 -- Cargo.toml | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.clippy.toml b/.clippy.toml index d842e407..691a590e 100644 --- a/.clippy.toml +++ b/.clippy.toml @@ -8,8 +8,6 @@ disallowed-macros = [ { path = "std::dbg", reason = "it is okay to use during development, but please do not include it in main branch" }, ] disallowed-methods = [ - { path = "std::env::remove_var", reason = "this is not thread-safe and inherently unsafe; see for more" }, - { path = "std::env::set_var", reason = "this is not thread-safe and inherently unsafe; see for more" }, ] disallowed-types = [ ] diff --git a/Cargo.toml b/Cargo.toml index fcfe09cc..b07a2b6c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,6 +5,7 @@ members = ["tools/codegen"] # This table is shared by projects under github.com/taiki-e. # It is not intended for manual editing. [workspace.lints.rust] +deprecated_safe = "warn" improper_ctypes = "warn" improper_ctypes_definitions = "warn" non_ascii_idents = "warn"