cleanup some warnings

This commit is contained in:
bunnie 2023-07-05 15:13:22 +08:00
parent 4454dffe4e
commit d19020a9ad
3 changed files with 4 additions and 0 deletions

View file

@ -1,5 +1,6 @@
use crate::{danger, Tls}; use crate::{danger, Tls};
use locales::t; use locales::t;
#[cfg(feature = "rootCA")]
use modals::Modals; use modals::Modals;
use std::convert::TryInto; use std::convert::TryInto;
use std::io::Read; use std::io::Read;
@ -7,6 +8,7 @@ use std::io::Write;
use std::net::TcpStream; use std::net::TcpStream;
use std::str::from_utf8; use std::str::from_utf8;
use std::sync::Arc; use std::sync::Arc;
#[cfg(feature = "rootCA")]
use xous_names::XousNames; use xous_names::XousNames;
pub fn shellchat<'a>( pub fn shellchat<'a>(

View file

@ -19,6 +19,7 @@ use xous_names::XousNames;
/// PDDB Dict for tls trusted certificates keys /// PDDB Dict for tls trusted certificates keys
const TLS_TRUSTED_DICT: &str = "tls.trusted"; const TLS_TRUSTED_DICT: &str = "tls.trusted";
#[allow(dead_code)]
const CURRENT_VERSION_KEY: &str = "__version"; const CURRENT_VERSION_KEY: &str = "__version";
pub struct Tls { pub struct Tls {

View file

@ -4,6 +4,7 @@ use der::{Encode, Header, Reader, Tag};
use rkyv::{Archive, Deserialize, Serialize}; use rkyv::{Archive, Deserialize, Serialize};
use std::cmp::min; use std::cmp::min;
use std::convert::TryInto; use std::convert::TryInto;
#[allow(unused_imports)]
use std::fmt; use std::fmt;
use std::io::{Error, ErrorKind}; use std::io::{Error, ErrorKind};
use x509_parser::prelude::{FromDer, X509Certificate}; use x509_parser::prelude::{FromDer, X509Certificate};