From 6397131f8a2ebef377a62094a02c2e8637cb9aca Mon Sep 17 00:00:00 2001 From: Michael Wright Date: Mon, 2 Apr 2018 06:22:10 +0200 Subject: [PATCH] Fix clippy warning Allow `many_single_char_names` on `SpanlessHash::hash_expr`. Each variable has a small scope and the method is readable. --- clippy_lints/src/utils/hir_utils.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/clippy_lints/src/utils/hir_utils.rs b/clippy_lints/src/utils/hir_utils.rs index e790184a7aba..1f96ec2b237c 100644 --- a/clippy_lints/src/utils/hir_utils.rs +++ b/clippy_lints/src/utils/hir_utils.rs @@ -316,6 +316,7 @@ impl<'a, 'tcx: 'a> SpanlessHash<'a, 'tcx> { b.rules.hash(&mut self.s); } + #[allow(many_single_char_names)] pub fn hash_expr(&mut self, e: &Expr) { if let Some(e) = constant_simple(self.cx, e) { return e.hash(&mut self.s);