test: add lints

Signed-off-by: hi-rustin <rustin.liu@gmail.com>
This commit is contained in:
hi-rustin 2024-01-09 21:49:33 +08:00
parent 47f4b75847
commit 874645e394
2 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,8 @@ include = ["foo"]
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"
publish = false publish = false
repository = "foo" repository = "foo"
[workspace.lints.rust]
unsafe_code = "forbid"
[package] [package]
name = "foo" name = "foo"

View File

@ -15,6 +15,8 @@ include = ["foo"]
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"
publish = false publish = false
repository = "foo" repository = "foo"
[workspace.lints.rust]
unsafe_code = "forbid"
[package] [package]
name = "foo" name = "foo"