You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When failing to deserialize a str into a Url the current implementation of Deserialize returns an error with a confusing message.
For example:
use serde_json::{json,Result};use url::Url;let json = json!("bad_url");let result:Result<Url> = serde_json::from_value(json);println!("{}", result.err().unwrap());
Actual: invalid value: string "bad_url", expected relative URL without a base
Expected: invalid value: string "bad_url", expected a string representing a URL
The text was updated successfully, but these errors were encountered:
justy777
added a commit
to justy777/rust-url
that referenced
this issue
Jul 23, 2023
When failing to deserialize a
str
into aUrl
the current implementation ofDeserialize
returns an error with a confusing message.For example:
Actual:
invalid value: string "bad_url", expected relative URL without a base
Expected:
invalid value: string "bad_url", expected a string representing a URL
The text was updated successfully, but these errors were encountered: