diff --git a/src/common/host.rs b/src/common/host.rs index cb135323..f62f68b1 100644 --- a/src/common/host.rs +++ b/src/common/host.rs @@ -50,6 +50,12 @@ impl From for Host { } } +impl From for Authority { + fn from(Host(authority): Host) -> Authority { + authority + } +} + impl fmt::Display for Host { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { fmt::Display::fmt(&self.0, f)