From bd3784e402bb055444f43be9522d36ffcccd3b28 Mon Sep 17 00:00:00 2001 From: Sunli Date: Sat, 13 Feb 2021 09:28:05 +0800 Subject: [PATCH] Rustfmt --- src/registry/mod.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/registry/mod.rs b/src/registry/mod.rs index 52acebd8..71eedf59 100644 --- a/src/registry/mod.rs +++ b/src/registry/mod.rs @@ -228,7 +228,10 @@ impl MetaType { } pub fn is_composite(&self) -> bool { - matches!(self, MetaType::Object { .. } | MetaType::Interface { .. } | MetaType::Union { .. }) + matches!( + self, + MetaType::Object { .. } | MetaType::Interface { .. } | MetaType::Union { .. } + ) } pub fn is_abstract(&self) -> bool { @@ -240,7 +243,10 @@ impl MetaType { } pub fn is_input(&self) -> bool { - matches!(self, MetaType::Enum { .. } | MetaType::Scalar { .. } | MetaType::InputObject { .. }) + matches!( + self, + MetaType::Enum { .. } | MetaType::Scalar { .. } | MetaType::InputObject { .. } + ) } pub fn is_possible_type(&self, type_name: &str) -> bool {