Skip to content

Commit f984237

Browse files
committed
Fix fmt warning for visit_all_rules
1 parent c358d5e commit f984237

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

juniper/src/schema/meta.rs

+8-2
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,10 @@ impl<'a, S> MetaType<'a, S> {
348348
///
349349
/// Objects, interfaces, and unions are composite.
350350
pub fn is_composite(&self) -> bool {
351-
matches!(*self, MetaType::Object(_) | MetaType::Interface(_) | MetaType::Union(_))
351+
matches!(
352+
*self,
353+
MetaType::Object(_) | MetaType::Interface(_) | MetaType::Union(_)
354+
)
352355
}
353356

354357
/// Returns true if the type can occur in leaf positions in queries
@@ -369,7 +372,10 @@ impl<'a, S> MetaType<'a, S> {
369372
///
370373
/// Only scalars, enums, and input objects are input types.
371374
pub fn is_input(&self) -> bool {
372-
matches!(*self, MetaType::Scalar(_) | MetaType::Enum(_) | MetaType::InputObject(_))
375+
matches!(
376+
*self,
377+
MetaType::Scalar(_) | MetaType::Enum(_) | MetaType::InputObject(_)
378+
)
373379
}
374380

375381
/// Returns true if the type is built-in to GraphQL.

juniper/src/validation/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ mod visitor;
1010
#[cfg(test)]
1111
pub(crate) mod test_harness;
1212

13-
pub use self::rules::visit_all_rules;
1413
pub use self::{
1514
context::{RuleError, ValidatorContext},
1615
input_value::validate_input_values,
1716
multi_visitor::MultiVisitorNil,
17+
rules::visit_all_rules,
1818
traits::Visitor,
1919
visitor::visit,
2020
};

0 commit comments

Comments
 (0)