Skip to content

Commit

Permalink
Deprecate Origin unicode_serialization.
Browse files Browse the repository at this point in the history
  • Loading branch information
evilpie committed Mar 23, 2024
1 parent 73803fa commit 9b7f6dc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions url/src/origin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,12 @@ impl Origin {
}
}

/// Deprecated: There used to also be a Unicode serialization of an origin. However, it was never widely adopted.
/// <https://html.spec.whatwg.org/multipage/#unicode-serialisation-of-an-origin>
#[deprecated(
since = "2.6.0",
note = "There used to also be a Unicode serialization of an origin. However, it was never widely adopted."
)]
pub fn unicode_serialization(&self) -> String {
match *self {
Origin::Opaque(_) => "null".to_owned(),
Expand Down

0 comments on commit 9b7f6dc

Please sign in to comment.