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 9765a44 commit 512ce78Copy full SHA for 512ce78
src/cargo/util/toml/schema.rs
@@ -411,7 +411,19 @@ impl<'de> de::Deserialize<'de> for InheritableBtreeMap {
411
#[serde(rename_all = "kebab-case")]
412
pub struct TomlInheritedField {
413
#[serde(deserialize_with = "bool_no_false")]
414
- pub workspace: bool,
+ workspace: bool,
415
+}
416
+
417
+impl TomlInheritedField {
418
+ pub fn new() -> Self {
419
+ TomlInheritedField { workspace: true }
420
+ }
421
422
423
+impl Default for TomlInheritedField {
424
+ fn default() -> Self {
425
+ Self::new()
426
427
}
428
429
fn bool_no_false<'de, D: de::Deserializer<'de>>(deserializer: D) -> Result<bool, D::Error> {
0 commit comments