formatting
This commit is contained in:
parent
3de2959e12
commit
944af2a464
|
|
@ -1,12 +1,12 @@
|
||||||
mod todo_file;
|
mod todo_file;
|
||||||
|
|
||||||
|
use crate::todo_file::TodoFile;
|
||||||
use chrono::naive::NaiveDate;
|
use chrono::naive::NaiveDate;
|
||||||
use chrono::{Datelike, Local};
|
use chrono::{Datelike, Local};
|
||||||
use std::env;
|
use std::env;
|
||||||
use std::fs::{copy, read_dir};
|
use std::fs::{copy, read_dir};
|
||||||
use std::path::{Path, PathBuf};
|
use std::path::{Path, PathBuf};
|
||||||
use std::process::Command;
|
use std::process::Command;
|
||||||
use crate::todo_file::TodoFile;
|
|
||||||
|
|
||||||
//TODO handle unwraps and errors more uniformly
|
//TODO handle unwraps and errors more uniformly
|
||||||
//TODO move TodoFile into its file
|
//TODO move TodoFile into its file
|
||||||
|
|
@ -54,7 +54,6 @@ fn main() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
fn get_editor(fallback: String) -> String {
|
fn get_editor(fallback: String) -> String {
|
||||||
match env::var("EDITOR") {
|
match env::var("EDITOR") {
|
||||||
Ok(editor) => editor,
|
Ok(editor) => editor,
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
use chrono::naive::NaiveDate;
|
use chrono::naive::NaiveDate;
|
||||||
use regex::Regex;
|
use regex::Regex;
|
||||||
use std::convert::TryFrom;
|
use std::convert::TryFrom;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue