mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
fix errors that came when turning off the tls feature
This commit is contained in:
parent
f5f4498b25
commit
8969485ccc
1 changed files with 2 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ use dns::Dns; // necessary to work around https://github.com/rust-lang/rust/issu
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
#[cfg(feature="ditherpunk")]
|
#[cfg(feature="ditherpunk")]
|
||||||
use gam::DecodePng;
|
use gam::DecodePng;
|
||||||
|
#[cfg(feature="tls")]
|
||||||
use std::convert::TryInto;
|
use std::convert::TryInto;
|
||||||
#[cfg(feature="tls")]
|
#[cfg(feature="tls")]
|
||||||
use tungstenite::{WebSocket, stream::MaybeTlsStream};
|
use tungstenite::{WebSocket, stream::MaybeTlsStream};
|
||||||
|
|
@ -39,6 +40,7 @@ impl NetCmd {
|
||||||
dns: dns::Dns::new(&xns).unwrap(),
|
dns: dns::Dns::new(&xns).unwrap(),
|
||||||
#[cfg(any(target_os = "none", target_os = "xous"))]
|
#[cfg(any(target_os = "none", target_os = "xous"))]
|
||||||
ping: None,
|
ping: None,
|
||||||
|
#[cfg(feature="tls")]
|
||||||
ws: None,
|
ws: None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue