~gbmor/clinte

5d32c8ccd1b2d544771363ef419d89ec4f56c924 — Ben Morrison 1 year, 10 months ago 19ae5c3
using rfc3339 for temp file name
1 files changed, 1 insertions(+), 1 deletions(-)

M src/ed.rs
M src/ed.rs => src/ed.rs +1 -1
@@ 25,7 25,7 @@ lazy_static! {
}

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