Fix clippy warning

Allow `many_single_char_names` on `SpanlessHash::hash_expr`. Each
variable has a small scope and the method is readable.
This commit is contained in:
Michael Wright 2018-04-02 06:22:10 +02:00
parent 609dd47410
commit 6397131f8a
1 changed files with 1 additions and 0 deletions

View File

@ -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);