Accordingly to standard (https://url.spec.whatwg.org/#url-representation) when the url does not have a password we should get an empty string: "A URL’s password is an ASCII string identifying a password. It is initially the empty string."
So, this changes password function from password(&self) -> Option<&str> to password(&self) -> &str
Accordingly to standard (https://url.spec.whatwg.org/#url-representation) when the url does not have a password we should get an empty string: "A URL’s password is an ASCII string identifying a password. It is initially the empty string."
So, this changes password function from
password(&self) -> Option<&str>
topassword(&self) -> &str
Closes #793