This commit is contained in:
daladim
2021-03-28 19:47:01 +02:00
parent 01b7d41e04
commit 9d0221d9a9
+1
View File
@@ -46,6 +46,7 @@ pub struct Client {
}
impl Client {
/// Create a client. This does not start a connection
pub fn new<S: AsRef<str>, T: ToString, U: ToString>(url: S, username: T, password: U) -> Result<Self, Box<dyn Error>> {
let url = Url::parse(url.as_ref())?;