mirror of
https://github.com/nushell/nushell.git
synced 2024-12-23 15:39:06 +01:00
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 {
|
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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user