Skip to content

Commit 1529a6d

Browse files
committed
fix(ws): ignore from_pkcs8 warnings
1 parent dee45d0 commit 1529a6d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

compio-ws/examples/echo_server_tls.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ use tungstenite::Message;
1111
// openssl req -x509 -newkey rsa:2048 -keyout localhost.key -out localhost.crt
1212
// -days 365 -nodes -subj "/CN=localhost"
1313
#[cfg(feature = "native-tls")]
14+
#[allow(deprecated)] // On iOS, `from_pkcs8` is not implemented.
1415
async fn create_tls_acceptor() -> Result<TlsAcceptor, Box<dyn std::error::Error>> {
1516
use compio_tls::native_tls;
1617

0 commit comments

Comments
 (0)