diff options
Diffstat (limited to 'internals/src/encoder')
-rw-r--r-- | internals/src/encoder/encodable.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internals/src/encoder/encodable.rs b/internals/src/encoder/encodable.rs index b06a9bc..ff1e29a 100644 --- a/internals/src/encoder/encodable.rs +++ b/internals/src/encoder/encodable.rs @@ -18,7 +18,7 @@ pub trait EncodableInHeader: Send + Sync + Any + Debug { fn boxed_clone(&self) -> Box<EncodableInHeader>; #[doc(hidden)] - fn type_id( &self ) -> TypeId { + fn type_id(&self) -> TypeId { TypeId::of::<Self>() } } @@ -28,7 +28,7 @@ impl EncodableInHeader { #[inline(always)] pub fn is<T: EncodableInHeader>(&self) -> bool { - self.type_id() == TypeId::of::<T>() + EncodableInHeader::type_id(self) == TypeId::of::<T>() } |