From 707ce36236bbb5a91f0965fa65b32471a26f3a6b Mon Sep 17 00:00:00 2001 From: Victor Porof Date: Thu, 2 Feb 2017 19:55:29 +0100 Subject: [PATCH] Don't use single-character string constants in the `is_backward` function See https://github.com/Manishearth/rust-clippy/wiki#single_char_pattern for further info Signed-off-by: Victor Porof --- edn/src/symbols.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edn/src/symbols.rs b/edn/src/symbols.rs index 0b2550c4..cc665464 100644 --- a/edn/src/symbols.rs +++ b/edn/src/symbols.rs @@ -169,7 +169,7 @@ impl NamespacedKeyword { /// ``` #[inline] pub fn is_backward(&self) -> bool { - self.name.starts_with("_") + self.name.starts_with('_') } /// Whether this `NamespacedKeyword` should be interpreted in forward order.