Format/optimize imports

This commit is contained in:
2023-07-22 00:18:31 -05:00
parent 138bb21f94
commit 8c88061573
3 changed files with 11 additions and 14 deletions

View File

@@ -3,7 +3,6 @@ use std::fs::File;
use std::io::{BufRead, BufReader, BufWriter, Write};
use std::path::Path;
use regex::Regex;
use chrono::{FixedOffset};
use lazy_static::lazy_static;
lazy_static! {

View File

@@ -1,8 +1,4 @@
use chrono::{FixedOffset, TimeZone};
use chrono::format::Fixed;
use phf::{Map, phf_map};
const HOUR: i32 = 60 * 60;
use chrono::FixedOffset;
// Generated by build.rs, phf_codegen
include!(concat!(env!("OUT_DIR"), "/codegen.rs"));

View File

@@ -1,20 +1,22 @@
mod config;
use std::net::SocketAddr;
use std::time::SystemTime;
use axum::{http::StatusCode, response::IntoResponse, Router, routing::{get}};
use axum::body::{Full};
use axum::extract::{ConnectInfo, Path};
use axum::http::{header, HeaderMap};
use axum::{http::StatusCode, response::IntoResponse, Router, routing::get};
use axum::body::Full;
use axum::extract::{Path};
use axum::http::{header};
use axum::response::Response;
use dotenvy::dotenv;
use lazy_static::lazy_static;
use config::Configuration;
use tera::{Tera, Context};
use tera::{Context, Tera};
use timeago::Formatter;
use config::Configuration;
mod config;
mod svg;
mod abbr;
lazy_static! {
pub static ref TEMPLATES: Tera = {