rustfmt
This commit is contained in:
parent
ae33efcc30
commit
f69bbb3b69
@ -79,10 +79,13 @@ pub(crate) fn register(f: &mut HashMap<String, Builtin>) {
|
|||||||
"inspect".to_owned(),
|
"inspect".to_owned(),
|
||||||
Box::new(|args, _| {
|
Box::new(|args, _| {
|
||||||
max_args!(args, 1);
|
max_args!(args, 1);
|
||||||
Ok(Value::Ident(match arg!(args, 0, "value") {
|
Ok(Value::Ident(
|
||||||
|
match arg!(args, 0, "value") {
|
||||||
Value::List(v, ..) if v.is_empty() => "()".to_string(),
|
Value::List(v, ..) if v.is_empty() => "()".to_string(),
|
||||||
v => v.to_string(),
|
v => v.to_string(),
|
||||||
}, QuoteKind::None))
|
},
|
||||||
|
QuoteKind::None,
|
||||||
|
))
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
f.insert(
|
f.insert(
|
||||||
|
@ -129,7 +129,7 @@ pub(crate) fn read_until_closing_quote<I: Iterator<Item = Token>>(
|
|||||||
TokenKind::Symbol(Symbol::BackSlash) if !is_escaped => {
|
TokenKind::Symbol(Symbol::BackSlash) if !is_escaped => {
|
||||||
t.push(tok);
|
t.push(tok);
|
||||||
is_escaped = true
|
is_escaped = true
|
||||||
},
|
}
|
||||||
TokenKind::Symbol(Symbol::BackSlash) => {
|
TokenKind::Symbol(Symbol::BackSlash) => {
|
||||||
is_escaped = false;
|
is_escaped = false;
|
||||||
t.push(tok);
|
t.push(tok);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user