From e409c284f0523042c173025e59aeac9c317f8b54 Mon Sep 17 00:00:00 2001 From: Shylock Hg Date: Sat, 4 May 2024 20:21:43 +0800 Subject: [PATCH] Lint fix. --- src/config/config.rs | 4 +++- src/config/from_document.rs | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) 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() } }) }