chore(header): fix unused doc comment warning in Origin
This commit is contained in:
@@ -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")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user