From 9aaaedcb99227f3ad910057d48568c6b142ced9e Mon Sep 17 00:00:00 2001 From: Ben Morrison Date: Tue, 26 May 2020 23:57:54 -0400 Subject: clippy lints --- src/ed.rs | 2 +- src/posts.rs | 2 -- src/user.rs | 2 -- 3 files changed, 1 insertion(+), 5 deletions(-) (limited to 'src') diff --git a/src/ed.rs b/src/ed.rs index 7d52909..5c87133 100644 --- a/src/ed.rs +++ b/src/ed.rs @@ -7,7 +7,7 @@ use chrono::prelude::*; use crate::error; use crate::user; -fn create_tmp_file<'a>() -> Result { +fn create_tmp_file() -> Result { let the_time = Utc::now().to_rfc3339(); let file_name = format!("/tmp/clinte_ed_{}_{}", *user::NAME, the_time); match fs::write(&file_name, "") { diff --git a/src/posts.rs b/src/posts.rs index 781ad9d..c9f9307 100644 --- a/src/posts.rs +++ b/src/posts.rs @@ -1,7 +1,5 @@ use std::io; -use rusqlite; - use crate::db; use crate::ed; use crate::error; diff --git a/src/user.rs b/src/user.rs index df785be..6e6a4bc 100644 --- a/src/user.rs +++ b/src/user.rs @@ -1,5 +1,3 @@ -use users; - lazy_static! { pub static ref NAME: String = users::get_current_username() .expect("Could not get username") -- cgit 1.4.1-2-gfad0