Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit 55d5e83

Browse files
committed
Fix/suppress clippy warnings
1 parent 136b7a6 commit 55d5e83

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/mapping.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ impl Hash for InherentEntry {
4848

4949
// FIXME derive Hash again once AssocKind derives Hash again.
5050
match self.kind {
51-
AssocKind::Const => 0u8.hash(hasher),
52-
AssocKind::Fn => 1u8.hash(hasher),
53-
AssocKind::OpaqueTy => 2u8.hash(hasher),
54-
AssocKind::Type => 3u8.hash(hasher),
51+
AssocKind::Const => 0_u8.hash(hasher),
52+
AssocKind::Fn => 1_u8.hash(hasher),
53+
AssocKind::OpaqueTy => 2_u8.hash(hasher),
54+
AssocKind::Type => 3_u8.hash(hasher),
5555
}
5656

5757
self.name.hash(hasher);

src/mismatch.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ impl<'a, 'tcx> TypeRelation<'tcx> for MismatchRelation<'a, 'tcx> {
129129
Relate::relate(self, a, b)
130130
}
131131

132+
// Allow this since that lint is too pedantic here.
133+
#[allow(clippy::similar_names)]
132134
fn tys(&mut self, a: Ty<'tcx>, b: Ty<'tcx>) -> RelateResult<'tcx, Ty<'tcx>> {
133135
use rustc_middle::ty::TyKind;
134136

0 commit comments

Comments
 (0)