unnecessary slice

This commit is contained in:
Kat Marchán 2020-12-18 21:05:01 -08:00
parent b4d3f07d09
commit 2f282ee206
No known key found for this signature in database
GPG Key ID: AEB529C08A3C7E9E
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ pub fn parse_document<I>(input: I) -> Result<Vec<KdlNode>, KdlError>
where
I: AsRef<str>,
{
let input = &input.as_ref()[..];
let input = input.as_ref();
all_consuming(parser::nodes)(input)
.finish()
.map(|(_, arg)| arg)