Skip to content

Commit e335ad3

Browse files
committed
Auto merge of #11806 - Muscraft:backport-11630, r=weihanglo
chore: Backport #11630 to `1.69.0` #11630 was a fix for unused manifest keys not showing. It did not make it in before branching `1.69.0`. This backports that fix so it will be in `1.69.0` Commits: fix(toml): Provide a way to show unused manifest keys for workspace inheritance (cherry picked from commit a32af2f) Ref: rust-lang/rust#108665
2 parents 9880b40 + de0468f commit e335ad3

File tree

6 files changed

+513
-68
lines changed

6 files changed

+513
-68
lines changed

src/cargo/core/dependency.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,16 @@ pub enum DepKind {
106106
Build,
107107
}
108108

109+
impl DepKind {
110+
pub fn kind_table(&self) -> &'static str {
111+
match self {
112+
DepKind::Normal => "dependencies",
113+
DepKind::Development => "dev-dependencies",
114+
DepKind::Build => "build-dependencies",
115+
}
116+
}
117+
}
118+
109119
impl ser::Serialize for DepKind {
110120
fn serialize<S>(&self, s: S) -> Result<S::Ok, S::Error>
111121
where

0 commit comments

Comments
 (0)