Fixed lints

This commit is contained in:
Yehuda Katz 2019-09-14 12:16:52 -05:00
parent 19767ad551
commit 17d2a27350
2 changed files with 7 additions and 7 deletions

View File

@ -246,14 +246,17 @@ impl Tag {
pub fn until(&self, other: impl Into<Tag>) -> Tag { pub fn until(&self, other: impl Into<Tag>) -> Tag {
let other = other.into(); 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 { Tag {
span: Span { span: Span {
start: self.span.start, start: self.span.start,
end: other.span.end end: other.span.end,
}, },
origin: self.origin origin: self.origin,
} }
} }

View File

@ -313,10 +313,7 @@ pub(crate) fn evaluate_args(
for (name, value) in n.named.iter() { for (name, value) in n.named.iter() {
match value { match value {
hir::named::NamedValue::PresentSwitch(tag) => { hir::named::NamedValue::PresentSwitch(tag) => {
results.insert( results.insert(name.clone(), Value::boolean(true).tagged(*tag));
name.clone(),
Value::boolean(true).tagged(*tag),
);
} }
hir::named::NamedValue::Value(expr) => { hir::named::NamedValue::Value(expr) => {
results.insert( results.insert(