From 17d2a2735060f55acd5f4e2c2d267884c5c0ab33 Mon Sep 17 00:00:00 2001 From: Yehuda Katz Date: Sat, 14 Sep 2019 12:16:52 -0500 Subject: [PATCH] Fixed lints --- src/data/meta.rs | 9 ++++++--- src/parser/registry.rs | 5 +---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/data/meta.rs b/src/data/meta.rs index d472a8add9..fd1c597c10 100644 --- a/src/data/meta.rs +++ b/src/data/meta.rs @@ -246,14 +246,17 @@ impl Tag { pub fn until(&self, other: impl Into) -> Tag { let other = other.into(); - debug_assert!(self.origin == other.origin, "Can only merge two tags with the same origin"); + debug_assert!( + self.origin == other.origin, + "Can only merge two tags with the same origin" + ); Tag { span: Span { start: self.span.start, - end: other.span.end + end: other.span.end, }, - origin: self.origin + origin: self.origin, } } diff --git a/src/parser/registry.rs b/src/parser/registry.rs index e199be192b..955a1a04c9 100644 --- a/src/parser/registry.rs +++ b/src/parser/registry.rs @@ -313,10 +313,7 @@ pub(crate) fn evaluate_args( for (name, value) in n.named.iter() { match value { hir::named::NamedValue::PresentSwitch(tag) => { - results.insert( - name.clone(), - Value::boolean(true).tagged(*tag), - ); + results.insert(name.clone(), Value::boolean(true).tagged(*tag)); } hir::named::NamedValue::Value(expr) => { results.insert(