summaryrefslogtreecommitdiffstats
path: root/headers/src/header.rs
diff options
context:
space:
mode:
authorPhilipp Korber <p.korber@1aim.com>2019-02-04 11:38:45 +0100
committerPhilipp Korber <p.korber@1aim.com>2019-02-04 11:44:28 +0100
commitdf2fe3f818e496383643f4bbda4a4e646f5e69fa (patch)
tree20fac80c8eb50e37f11459cd312203cd05cfbd4e /headers/src/header.rs
parent1ae19a5b9a4e3e520db3f9d66da98e0c0e1e46e7 (diff)
chore(rust): Use UFC Syntax for any custom `type_id` methods.
This is neccessary as `Any::get_type_id` is getting stabilized as `Any::type_id` leading to potential brakage wrt. the compiler failing due to syntax ambiguity.
Diffstat (limited to 'headers/src/header.rs')
-rw-r--r--headers/src/header.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/headers/src/header.rs b/headers/src/header.rs
index ae63632..b032e53 100644
--- a/headers/src/header.rs
+++ b/headers/src/header.rs
@@ -197,7 +197,7 @@ impl HeaderObj {
pub fn is<H>(&self) -> bool
where H: HeaderKind
{
- self.type_id() == TypeId::of::<Header<H>>()
+ HeaderObjTrait::type_id(self) == TypeId::of::<Header<H>>()
}
pub fn downcast_ref<H>(&self) -> Option<&Header<H>>