Skip to content

Commit

Permalink
Merge pull request #44 from bugadani/error
Browse files Browse the repository at this point in the history
Remove explicit error conversion
  • Loading branch information
Ulf Lilleengen committed Oct 18, 2023
2 parents fcce664 + 091f6ad commit c3a0f18
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ where
let mut conn: embedded_tls::TlsConnection<'m, T::Connection<'m>, embedded_tls::Aes128GcmSha256> =
embedded_tls::TlsConnection::new(conn, tls.read_buffer, tls.write_buffer);
conn.open::<_, embedded_tls::NoVerify>(TlsContext::new(&config, &mut rng))
.await
.map_err(Error::Tls)?;
.await?;
Ok(HttpConnection::Tls(conn))
} else {
Ok(HttpConnection::Plain(conn))
Expand Down

0 comments on commit c3a0f18

Please sign in to comment.