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
I expect example.org/path to be valid Uri, but parse() returns an InvalidFormat error
use http::Uri;fnmain(){let uri:Uri = "example.org/path".parse().unwrap();dbg!(uri.authority());}// ^this will result in:// thread 'main' panicked at src/main.rs:4:47:// called `Result::unwrap()` on an `Err` value: InvalidUri(InvalidFormat)
note: http://example.org/path is parsed correctly!
The text was updated successfully, but these errors were encountered:
I expect
example.org/path
to be valid Uri, butparse()
returns anInvalidFormat
errornote:
http://example.org/path
is parsed correctly!The text was updated successfully, but these errors were encountered: