forked from extern/nushell
Fixed lints
This commit is contained in:
parent
19767ad551
commit
17d2a27350
@ -246,14 +246,17 @@ impl Tag {
|
||||
|
||||
pub fn until(&self, other: impl Into<Tag>) -> 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,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user