From 2f282ee206322de6d84fa111c7c9d527b9d1794d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Fri, 18 Dec 2020 21:05:01 -0800 Subject: [PATCH] unnecessary slice --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 109517e..e472be5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,7 +12,7 @@ pub fn parse_document(input: I) -> Result, KdlError> where I: AsRef, { - let input = &input.as_ref()[..]; + let input = input.as_ref(); all_consuming(parser::nodes)(input) .finish() .map(|(_, arg)| arg)