commit cc4c43cc807b30064644412a78345faa82edf48d
parent db06926c3e4d650003df6329f9fcd9de9581931a
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date: Sun, 15 Sep 2019 00:31:15 -0400
Clean up import
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/tweet.rs b/src/tweet.rs
@@ -1,3 +1,4 @@
+use chrono::{Local, SecondsFormat};
use clap::ArgMatches;
use std::fs::OpenOptions;
@@ -53,7 +54,6 @@ pub fn tweet(config: &Config, subcommand: &ArgMatches) {
/// Formats given content into twtxt format by adding datetime.
fn compose(content: String) -> String {
- use chrono::{Local, SecondsFormat};
let timestamp = Local::now().to_rfc3339_opts(SecondsFormat::Secs, true);
let mut post = String::new();
post.push_str(×tamp);