Skip to content

Commit 874645e

Browse files
committed
test: add lints
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
1 parent 47f4b75 commit 874645e

File tree

2 files changed

+4
-0
lines changed
  • tests/testsuite/cargo_new/not_inherit_workspace_package_table_if_not_members

2 files changed

+4
-0
lines changed

tests/testsuite/cargo_new/not_inherit_workspace_package_table_if_not_members/in/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ include = ["foo"]
1515
license = "MIT OR Apache-2.0"
1616
publish = false
1717
repository = "foo"
18+
[workspace.lints.rust]
19+
unsafe_code = "forbid"
1820

1921
[package]
2022
name = "foo"

tests/testsuite/cargo_new/not_inherit_workspace_package_table_if_not_members/out/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ include = ["foo"]
1515
license = "MIT OR Apache-2.0"
1616
publish = false
1717
repository = "foo"
18+
[workspace.lints.rust]
19+
unsafe_code = "forbid"
1820

1921
[package]
2022
name = "foo"

0 commit comments

Comments
 (0)