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 {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
match self {
|
||||
&Origin(OriginOrNull::Origin { ref scheme, ref host }) => write!(f, "{}://{}", scheme, host),
|
||||
/// Serialized as "null" per ASCII serialization of an origin
|
||||
/// https://html.spec.whatwg.org/multipage/browsers.html#ascii-serialisation-of-an-origin
|
||||
_ => write!(f, "null")
|
||||
match self.0 {
|
||||
OriginOrNull::Origin { ref scheme, ref host } => write!(f, "{}://{}", scheme, host),
|
||||
// Serialized as "null" per ASCII serialization of an origin
|
||||
// https://html.spec.whatwg.org/multipage/browsers.html#ascii-serialisation-of-an-origin
|
||||
OriginOrNull::Null => f.write_str("null")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user