fix use Tls

This commit is contained in:
nworbnhoj 2023-12-19 06:18:08 +11:00
parent d22317018b
commit 96a59422b1
2 changed files with 6 additions and 3 deletions

View file

@ -9,6 +9,7 @@ use chat::Chat;
use locales::t;
use modals::Modals;
use std::io::{Error, ErrorKind};
use tls::Tls;
/// PDDB Dict for sigchat keys
const SIGCHAT_ACCOUNT: &str = "sigchat.account";
@ -263,7 +264,7 @@ impl<'a> SigChat<'a> {
///
/// # Returns
/// the name provided by the user
///
///
fn name_modal(&self, default_name: &str, prompt: &str) -> String {
match self
.modals

View file

@ -8,7 +8,6 @@ use std::sync::mpsc;
use std::sync::{Arc, Mutex};
use std::thread;
use std::time::{Duration, Instant};
use tls::Tls;
use xous::MessageEnvelope;
use xous_ipc::String;
@ -22,7 +21,10 @@ use net::XousServerId;
use perflib::*;
#[cfg(feature = "websocket")]
use tungstenite::{stream::MaybeTlsStream, WebSocket};
use {
tls::Tls,
tungstenite::{stream::MaybeTlsStream, WebSocket},
};
pub struct NetCmd {
callback_id: Option<u32>,