diff options
author | Daniel Eades <danieleades@hotmail.com> | 2021-12-27 11:39:19 +0000 |
---|---|---|
committer | Daniel Eades <danieleades@hotmail.com> | 2021-12-28 18:27:12 +0000 |
commit | 252e03e44d5538ab15f7b17346699984d26e73f4 (patch) | |
tree | 6b7b98e9fcfb452958173dbd413e218f79cd0e94 | |
parent | 9aa13c6c8ac28b4e2b5c7bf3bcdb32563d802b35 (diff) |
replace redundant closure with method
-rw-r--r-- | src/path/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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) } |