From a858e176f69ca1f45cafa0d71445cf8411bec5c1 Mon Sep 17 00:00:00 2001 From: Nicholas Connor Date: Fri, 6 Nov 2020 12:30:39 -0500 Subject: [PATCH 1/2] Add serde feature hint --- url/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/url/src/lib.rs b/url/src/lib.rs index f9830f272..2c2548b79 100644 --- a/url/src/lib.rs +++ b/url/src/lib.rs @@ -73,6 +73,9 @@ assert!(data_url.fragment() == Some("")); # run().unwrap(); ``` +## Serde + +Add `serde` feature to complement `url::Url` with the `Deserialize` and `Serialize`. # Base URL From 59b52603da9b476d5e0ef98fc20bca1a055564d8 Mon Sep 17 00:00:00 2001 From: Nicholas Connor Date: Fri, 6 Nov 2020 15:13:33 -0500 Subject: [PATCH 2/2] Use suggested language for serde hint --- url/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/url/src/lib.rs b/url/src/lib.rs index 2c2548b79..63822d6eb 100644 --- a/url/src/lib.rs +++ b/url/src/lib.rs @@ -75,7 +75,7 @@ assert!(data_url.fragment() == Some("")); ## Serde -Add `serde` feature to complement `url::Url` with the `Deserialize` and `Serialize`. +Enable the `serde` feature to include `Deserialize` and `Serialize` implementations for `url::Url`. # Base URL