We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c710fc0 + 6d3ff14 commit 6bf996cCopy full SHA for 6bf996c
crates/cargo-util-schemas/src/manifest/mod.rs
@@ -351,6 +351,10 @@ impl<T> InheritableField<T> {
351
InheritableField::Value(defined) => Some(defined),
352
}
353
354
+
355
+ pub fn is_inherited(&self) -> bool {
356
+ matches!(self, Self::Inherit(_))
357
+ }
358
359
360
//. This already has a `Deserialize` impl from version_trim_whitespace
@@ -675,6 +679,10 @@ impl InheritableDependency {
675
679
InheritableDependency::Inherit(_) => Err(UnresolvedError),
676
680
677
681
682
683
684
+ matches!(self, InheritableDependency::Inherit(_))
685
678
686
687
688
impl<'de> de::Deserialize<'de> for InheritableDependency {
0 commit comments