diff options
Diffstat (limited to 'crates/hir_ty/src')
-rw-r--r-- | crates/hir_ty/src/interner.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/crates/hir_ty/src/interner.rs b/crates/hir_ty/src/interner.rs index 7b4119747..8e77378ab 100644 --- a/crates/hir_ty/src/interner.rs +++ b/crates/hir_ty/src/interner.rs | |||
@@ -15,9 +15,15 @@ use std::{fmt, sync::Arc}; | |||
15 | #[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)] | 15 | #[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)] |
16 | pub struct Interner; | 16 | pub struct Interner; |
17 | 17 | ||
18 | #[derive(PartialEq, Eq, Hash, Debug)] | 18 | #[derive(PartialEq, Eq, Hash)] |
19 | pub struct InternedWrapper<T>(T); | 19 | pub struct InternedWrapper<T>(T); |
20 | 20 | ||
21 | impl<T: fmt::Debug> fmt::Debug for InternedWrapper<T> { | ||
22 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { | ||
23 | fmt::Debug::fmt(&self.0, f) | ||
24 | } | ||
25 | } | ||
26 | |||
21 | impl<T> std::ops::Deref for InternedWrapper<T> { | 27 | impl<T> std::ops::Deref for InternedWrapper<T> { |
22 | type Target = T; | 28 | type Target = T; |
23 | 29 | ||