From 47a38b69693a7b4b024a9cb45803ed4f9bc5a34c Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sun, 25 Aug 2024 21:59:03 +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 e8c82126..9fa43dc4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -51,6 +51,7 @@ members = [ # 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"