Apply deprecated_safe lint

This commit is contained in:
Taiki Endo
2024-08-25 21:57:04 +09:00
parent 55ca367f68
commit fa71ab6d46
2 changed files with 1 additions and 2 deletions

View File

@@ -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 <https://github.com/rust-lang/rust/issues/27970> for more" },
{ path = "std::env::set_var", reason = "this is not thread-safe and inherently unsafe; see <https://github.com/rust-lang/rust/issues/27970> for more" },
]
disallowed-types = [
]

View File

@@ -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"