~gbmor/clinte

9aaaedcb99227f3ad910057d48568c6b142ced9e — Ben Morrison 1 year, 2 months ago 99c5537
clippy lints
3 files changed, 1 insertions(+), 5 deletions(-)

M src/ed.rs
M src/posts.rs
M src/user.rs
M src/ed.rs => src/ed.rs +1 -1
@@ 7,7 7,7 @@ use chrono::prelude::*;
use crate::error;
use crate::user;

fn create_tmp_file<'a>() -> Result<String, std::io::Error> {
fn create_tmp_file() -> Result<String, std::io::Error> {
    let the_time = Utc::now().to_rfc3339();
    let file_name = format!("/tmp/clinte_ed_{}_{}", *user::NAME, the_time);
    match fs::write(&file_name, "") {

M src/posts.rs => src/posts.rs +0 -2
@@ 1,7 1,5 @@
use std::io;

use rusqlite;

use crate::db;
use crate::ed;
use crate::error;

M src/user.rs => src/user.rs +0 -2
@@ 1,5 1,3 @@
use users;

lazy_static! {
    pub static ref NAME: String = users::get_current_username()
        .expect("Could not get username")