diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-12-29 10:45:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-29 10:45:41 +0100 |
commit | 971e65955229d27d91c0d51f858b1c3136b7594e (patch) | |
tree | 1e4e2e4c1f8f3fd7664a140d036a397bdbe0d0d3 | |
parent | 7c102186e7d3a80dcfa3d465afa0ab4c4cb330d9 (diff) | |
parent | 252e03e44d5538ab15f7b17346699984d26e73f4 (diff) |
Merge pull request #265 from danieleades/refactor/redundant-closure
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) } |