From 56c71e2b1ebd92f3124b0277e72959eb51c4ecb3 Mon Sep 17 00:00:00 2001 From: Boshen Date: Sat, 13 Apr 2024 15:33:12 +0800 Subject: [PATCH] chore: enable some rust lints --- Cargo.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index e9aaf0dcd..ebbd3d710 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,8 +14,12 @@ license = "MIT" repository = "https://github.com/oxc-project/oxc" rust-version = "1.74" +# [workspace.lints.rust] -unsafe_code = "warn" +unsafe_code = "warn" +absolute_paths_not_starting_with_crate = "warn" +non_ascii_idents = "warn" +unit-bindings = "warn" [workspace.lints.clippy] all = { level = "warn" }