Make constructors error less

This commit is contained in:
Joscha 2022-03-03 00:33:02 +01:00
parent f08c251bd1
commit 9451920c52
3 changed files with 4 additions and 4 deletions

View file

@ -257,7 +257,7 @@ impl CoveConnMt {
timeout: Duration,
) -> Result<(ConnTx, ConnRx, ConnMaintenance), conn::Error> {
let stream = tokio_tungstenite::connect_async(url).await?.0;
let conn = conn::new(stream, timeout)?;
let conn = conn::new(stream, timeout);
Ok(conn)
}