From 1467b8ba68ec16ac9bc16579648a345be1d63b15 Mon Sep 17 00:00:00 2001 From: asxalex Date: Tue, 2 Apr 2024 11:02:39 +0800 Subject: [PATCH] fix some warning --- src/utils/error.rs | 2 -- src/utils/myrsa.rs | 1 - 2 files changed, 3 deletions(-) diff --git a/src/utils/error.rs b/src/utils/error.rs index ce8cc51..cc1ee61 100644 --- a/src/utils/error.rs +++ b/src/utils/error.rs @@ -1,7 +1,5 @@ use std::{convert::From, net::AddrParseError, string::ParseError}; -use aes::cipher::typenum::IsLessOrEqual; - pub type Result = std::result::Result; #[derive(Debug)] diff --git a/src/utils/myrsa.rs b/src/utils/myrsa.rs index 95be7a7..b47c3cc 100644 --- a/src/utils/myrsa.rs +++ b/src/utils/myrsa.rs @@ -8,7 +8,6 @@ use rsa::{Pkcs1v15Encrypt, RsaPrivateKey, RsaPublicKey}; use std::fs::File; use std::io::Read; -use std::path::Path; pub fn gen_rsa_keys(mut dirpath: &str) { if dirpath.len() == 0 {