Skip to content

Commit 3308858

Browse files
remove warning
1 parent b5d629d commit 3308858

File tree

4 files changed

+0
-5
lines changed

4 files changed

+0
-5
lines changed

command/src/commands/arg.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use crate::commands::command::stdout_file;
21
use crate::set::set::get_similar;
32
use crate::root::{decryption, SessionContext};
43
use crate::state_code::{missing_pattern, not_found};

command/src/commands/command.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,6 @@ pub fn sudo(session_context: &mut SessionContext)->io::Result<(usize,String)>{
460460

461461

462462
// get time
463-
use chrono;
464463
pub fn get_time() -> io::Result<(usize,String)>{
465464
let now = chrono::Local::now();
466465
let time = now.format("%Y-%m-%d %H:%M:%S").to_string();

command/src/commands/download.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ async fn download(link: &str, filename: &str) -> Result<(),Box<dyn std::error::E
5757
}
5858

5959

60-
use dirs;
6160
// apt update new
6261
pub fn update(version: &str) -> std::io::Result<()>{
6362
let mut version = version;

command/src/root.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ impl UserState {
4343
use std::io::{self,Write};
4444
use std::fs;
4545
use std::process::Command;
46-
use dirs;
4746

4847

4948
pub struct User{
@@ -181,7 +180,6 @@ fn get_username(user: &mut String){
181180
io::stdin().read_line(user).unwrap();
182181
}
183182

184-
use rpassword;
185183
fn get_password() -> String{
186184
loop {
187185
println!("Enter password:");

0 commit comments

Comments
 (0)