From 252e03e44d5538ab15f7b17346699984d26e73f4 Mon Sep 17 00:00:00 2001 From: Daniel Eades Date: Mon, 27 Dec 2021 11:39:19 +0000 Subject: replace redundant closure with method --- src/path/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/path/parser.rs b/src/path/parser.rs index 1867657..8378121 100644 --- a/src/path/parser.rs +++ b/src/path/parser.rs @@ -20,7 +20,7 @@ fn raw_ident(i: &str) -> IResult<&str, String> { 0123456789 \ _-", ), - |s: &str| s.to_string(), + ToString::to_string, )(i) } -- cgit v1.2.3