Skip to content

Commit b4489e3

Browse files
committed
refactor(toml): Inline TomlDetailedDependency::update_optional
1 parent a774d8b commit b4489e3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/cargo/util/toml/mod.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1657,7 +1657,7 @@ impl schema::TomlInheritedDependency {
16571657
d.public = Some(public);
16581658
}
16591659
d.add_features(self.features.clone());
1660-
d.update_optional(self.optional);
1660+
d.optional = self.optional;
16611661
schema::TomlDependency::Detailed(d)
16621662
}
16631663
}
@@ -1726,10 +1726,6 @@ impl schema::TomlDetailedDependency {
17261726
};
17271727
}
17281728

1729-
fn update_optional(&mut self, optional: Option<bool>) {
1730-
self.optional = optional;
1731-
}
1732-
17331729
fn resolve_path(
17341730
&mut self,
17351731
name: &str,

0 commit comments

Comments
 (0)