mirror of
https://github.com/Xevion/time-banner.git
synced 2025-12-08 02:08:54 -06:00
Format/optimize imports
This commit is contained in:
1
build.rs
1
build.rs
@@ -3,7 +3,6 @@ use std::fs::File;
|
|||||||
use std::io::{BufRead, BufReader, BufWriter, Write};
|
use std::io::{BufRead, BufReader, BufWriter, Write};
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
use regex::Regex;
|
use regex::Regex;
|
||||||
use chrono::{FixedOffset};
|
|
||||||
use lazy_static::lazy_static;
|
use lazy_static::lazy_static;
|
||||||
|
|
||||||
lazy_static! {
|
lazy_static! {
|
||||||
|
|||||||
@@ -1,8 +1,4 @@
|
|||||||
use chrono::{FixedOffset, TimeZone};
|
use chrono::FixedOffset;
|
||||||
use chrono::format::Fixed;
|
|
||||||
use phf::{Map, phf_map};
|
|
||||||
|
|
||||||
const HOUR: i32 = 60 * 60;
|
|
||||||
|
|
||||||
// Generated by build.rs, phf_codegen
|
// Generated by build.rs, phf_codegen
|
||||||
include!(concat!(env!("OUT_DIR"), "/codegen.rs"));
|
include!(concat!(env!("OUT_DIR"), "/codegen.rs"));
|
||||||
|
|||||||
18
src/main.rs
18
src/main.rs
@@ -1,20 +1,22 @@
|
|||||||
mod config;
|
|
||||||
|
|
||||||
use std::net::SocketAddr;
|
use std::net::SocketAddr;
|
||||||
use std::time::SystemTime;
|
use std::time::SystemTime;
|
||||||
|
|
||||||
use axum::{http::StatusCode, response::IntoResponse, Router, routing::{get}};
|
use axum::{http::StatusCode, response::IntoResponse, Router, routing::get};
|
||||||
use axum::body::{Full};
|
use axum::body::Full;
|
||||||
use axum::extract::{ConnectInfo, Path};
|
use axum::extract::{Path};
|
||||||
use axum::http::{header, HeaderMap};
|
use axum::http::{header};
|
||||||
use axum::response::Response;
|
use axum::response::Response;
|
||||||
use dotenvy::dotenv;
|
use dotenvy::dotenv;
|
||||||
use lazy_static::lazy_static;
|
use lazy_static::lazy_static;
|
||||||
use config::Configuration;
|
use tera::{Context, Tera};
|
||||||
use tera::{Tera, Context};
|
|
||||||
use timeago::Formatter;
|
use timeago::Formatter;
|
||||||
|
|
||||||
|
use config::Configuration;
|
||||||
|
|
||||||
|
mod config;
|
||||||
|
|
||||||
mod svg;
|
mod svg;
|
||||||
|
mod abbr;
|
||||||
|
|
||||||
lazy_static! {
|
lazy_static! {
|
||||||
pub static ref TEMPLATES: Tera = {
|
pub static ref TEMPLATES: Tera = {
|
||||||
|
|||||||
Reference in New Issue
Block a user