fix some warning

This commit is contained in:
asxalex 2024-04-02 11:02:39 +08:00
parent b5f21063ad
commit 1467b8ba68
2 changed files with 0 additions and 3 deletions

View File

@ -1,7 +1,5 @@
use std::{convert::From, net::AddrParseError, string::ParseError}; use std::{convert::From, net::AddrParseError, string::ParseError};
use aes::cipher::typenum::IsLessOrEqual;
pub type Result<T> = std::result::Result<T, SDLanError>; pub type Result<T> = std::result::Result<T, SDLanError>;
#[derive(Debug)] #[derive(Debug)]

View File

@ -8,7 +8,6 @@ use rsa::{Pkcs1v15Encrypt, RsaPrivateKey, RsaPublicKey};
use std::fs::File; use std::fs::File;
use std::io::Read; use std::io::Read;
use std::path::Path;
pub fn gen_rsa_keys(mut dirpath: &str) { pub fn gen_rsa_keys(mut dirpath: &str) {
if dirpath.len() == 0 { if dirpath.len() == 0 {