rustfmt
This commit is contained in:
parent
2705d79d1a
commit
d88342fd9b
@ -114,7 +114,14 @@ pub(crate) fn register(f: &mut HashMap<String, Builtin>) {
|
|||||||
if start > end || start > str_len {
|
if start > end || start > str_len {
|
||||||
Ok(Value::Ident(String::new(), quotes.normalize()))
|
Ok(Value::Ident(String::new(), quotes.normalize()))
|
||||||
} else {
|
} else {
|
||||||
Ok(Value::Ident(string.chars().skip(start - 1).take(end - start + 1).collect(), quotes.normalize()))
|
Ok(Value::Ident(
|
||||||
|
string
|
||||||
|
.chars()
|
||||||
|
.skip(start - 1)
|
||||||
|
.take(end - start + 1)
|
||||||
|
.collect(),
|
||||||
|
quotes.normalize(),
|
||||||
|
))
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user