summaryrefslogtreecommitdiffstats
path: root/headers
diff options
context:
space:
mode:
Diffstat (limited to 'headers')
-rw-r--r--headers/Cargo.toml2
-rw-r--r--headers/src/header.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/headers/Cargo.toml b/headers/Cargo.toml
index ff37c5a..1526ab3 100644
--- a/headers/Cargo.toml
+++ b/headers/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "mail-headers"
description = "[mail/headers] header parts for the mail crate (inkl. header map and standard header impl)"
-version = "0.6.2"
+version = "0.6.3"
authors = ["Philipp Korber <philippkorber@gmail.com>"]
documentation = "https://docs.rs/mail-headers"
keywords = []
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>>