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
Now that TryFrom<str> for Url has been implemented, using the Url struct is a lot more pleasant. This opens up the possibility again for us to move from a "panic if parsing fails" to returning errors if parsing fails.
// current, panic if the url is malformedlet req = Request::post("https://api.foo.com/berries");// proposed, throw an error insteadlet req = Request::post("https://api.foo.com/berries")?;