How to silent warning from cargo workspace

I used to silent warning in crate level by using following attribute

#![allow(dead_code)]

Now i'm using a workspace, how can i deal with this in workspace Cargo.toml file?

# [PROJECT_DIR]/Cargo.toml
[workspace.lints.rust]
dead_code = "allow"

# [PROJECT_DIR]/crates/bar/Cargo.toml
[lints]
workspace = true
3 Likes

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.