Skip to content

Commit a32af2f

Browse files
committed
fix(toml): Provide a way to show unused manifest keys for workspace inheritance
1 parent 64b0e79 commit a32af2f

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)