mirror of https://github.com/kdl-org/kdl-rs.git
unnecessary slice
This commit is contained in:
parent
b4d3f07d09
commit
2f282ee206
|
|
@ -12,7 +12,7 @@ pub fn parse_document<I>(input: I) -> Result<Vec<KdlNode>, KdlError>
|
||||||
where
|
where
|
||||||
I: AsRef<str>,
|
I: AsRef<str>,
|
||||||
{
|
{
|
||||||
let input = &input.as_ref()[..];
|
let input = input.as_ref();
|
||||||
all_consuming(parser::nodes)(input)
|
all_consuming(parser::nodes)(input)
|
||||||
.finish()
|
.finish()
|
||||||
.map(|(_, arg)| arg)
|
.map(|(_, arg)| arg)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue