chore: enable some rust lints

This commit is contained in:
Boshen 2024-04-13 15:33:12 +08:00
parent b15bf2826b
commit 56c71e2b1e
No known key found for this signature in database
GPG key ID: 9C7A8C8AB22BEBD1

View file

@ -14,8 +14,12 @@ license = "MIT"
repository = "https://github.com/oxc-project/oxc"
rust-version = "1.74"
# <https://doc.rust-lang.org/rustc/lints/listing/allowed-by-default.html>
[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" }