diff --git a/src/config/config.rs b/src/config/config.rs index e7648859be..0fc863fea6 100644 --- a/src/config/config.rs +++ b/src/config/config.rs @@ -654,7 +654,9 @@ impl Config { } pub fn contains(&self, name: &str) -> bool { - self.types.contains_key(name) || self.unions.contains_key(name) || self.enums.contains_key(name) + self.types.contains_key(name) + || self.unions.contains_key(name) + || self.enums.contains_key(name) } pub fn from_json(json: &str) -> Result { diff --git a/src/config/from_document.rs b/src/config/from_document.rs index 7a26521f5f..fbd2ed4dd7 100644 --- a/src/config/from_document.rs +++ b/src/config/from_document.rs @@ -250,7 +250,6 @@ where cache, protected, tag, - ..Default::default() } }) }