Skip to content

Commit 9ab1059

Browse files
committed
Add genproto to list of allowed cfgs
.. to avoid the warning
1 parent 3f5121d commit 9ab1059

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,10 @@ reqwest = { version = "0.11.13", default-features = false, features = ["rustls-
3838
mockito = "0.28.0"
3939
proptest = "1.1.0"
4040
tokio = { version = "1.22.0", features = ["macros"]}
41+
42+
[lints.rust.unexpected_cfgs]
43+
level = "forbid"
44+
# When adding a new cfg attribute, ensure that it is added to this list.
45+
check-cfg = [
46+
"cfg(genproto)",
47+
]

0 commit comments

Comments
 (0)