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:
parent
609dd47410
commit
6397131f8a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue