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.
1 parent a774d8b commit b4489e3Copy full SHA for b4489e3
src/cargo/util/toml/mod.rs
@@ -1657,7 +1657,7 @@ impl schema::TomlInheritedDependency {
1657
d.public = Some(public);
1658
}
1659
d.add_features(self.features.clone());
1660
- d.update_optional(self.optional);
+ d.optional = self.optional;
1661
schema::TomlDependency::Detailed(d)
1662
1663
@@ -1726,10 +1726,6 @@ impl schema::TomlDetailedDependency {
1726
};
1727
1728
1729
- fn update_optional(&mut self, optional: Option<bool>) {
1730
- self.optional = optional;
1731
- }
1732
-
1733
fn resolve_path(
1734
&mut self,
1735
name: &str,
0 commit comments