Skip to content

Commit 6738ddd

Browse files
committed
refactor(manifest): Remove unused 'profile.debug' suggestion
Instead we get ``` error: profile name `debug` is reserved To configure the default development profile, use the name `dev` as in [profile.dev] See https://doc.rust-lang.org/cargo/reference/profiles.html for more on configuring profiles. --> Cargo.toml:15:25 | 15 | [profile.debug] | ^^^^^ ```
1 parent a18393a commit 6738ddd

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/cargo/util/toml/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2889,9 +2889,6 @@ fn deprecated_underscore<T>(
28892889
fn warn_on_unused(unused: &BTreeSet<String>, warnings: &mut Vec<String>) {
28902890
for key in unused {
28912891
warnings.push(format!("unused manifest key: {}", key));
2892-
if key == "profiles.debug" {
2893-
warnings.push("use `[profile.dev]` to configure debug builds".to_string());
2894-
}
28952892
}
28962893
}
28972894

0 commit comments

Comments
 (0)