From 944af2a464062e9364323a05bdbacccae01d7784 Mon Sep 17 00:00:00 2001 From: Andrei Stoica Date: Thu, 15 Jun 2023 10:13:15 -0400 Subject: [PATCH] formatting --- src/main.rs | 3 +-- src/todo_file/mod.rs | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 8c6cda6..2857da9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,12 +1,12 @@ mod todo_file; +use crate::todo_file::TodoFile; use chrono::naive::NaiveDate; use chrono::{Datelike, Local}; use std::env; use std::fs::{copy, read_dir}; use std::path::{Path, PathBuf}; use std::process::Command; -use crate::todo_file::TodoFile; //TODO handle unwraps and errors more uniformly //TODO move TodoFile into its file @@ -54,7 +54,6 @@ fn main() { } } - fn get_editor(fallback: String) -> String { match env::var("EDITOR") { Ok(editor) => editor, diff --git a/src/todo_file/mod.rs b/src/todo_file/mod.rs index 2d7e09f..0dd47ac 100644 --- a/src/todo_file/mod.rs +++ b/src/todo_file/mod.rs @@ -1,4 +1,3 @@ - use chrono::naive::NaiveDate; use regex::Regex; use std::convert::TryFrom;