chore(header): fix unused doc comment warning in Origin

This commit is contained in:
Sean McArthur
2017-07-31 09:51:52 -07:00
parent 4922bb9d18
commit a9004958dd

View File

@@ -138,11 +138,11 @@ impl FromStr for Origin {
impl fmt::Display for Origin { impl fmt::Display for Origin {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match self { match self.0 {
&Origin(OriginOrNull::Origin { ref scheme, ref host }) => write!(f, "{}://{}", scheme, host), OriginOrNull::Origin { ref scheme, ref host } => write!(f, "{}://{}", scheme, host),
/// Serialized as "null" per ASCII serialization of an origin // Serialized as "null" per ASCII serialization of an origin
/// https://html.spec.whatwg.org/multipage/browsers.html#ascii-serialisation-of-an-origin // https://html.spec.whatwg.org/multipage/browsers.html#ascii-serialisation-of-an-origin
_ => write!(f, "null") OriginOrNull::Null => f.write_str("null")
} }
} }
} }