From 10348afaa740de1fcb1974a81cc6a3d3bc56b18a Mon Sep 17 00:00:00 2001 From: blek Date: Wed, 11 Oct 2023 23:46:53 +1000 Subject: [PATCH] clean up imports --- filed/Cargo.lock | 12 ------------ filed/Cargo.toml | 1 - filed/src/env.rs | 2 -- filed/src/web/uploaded.rs | 2 +- filed/templates/upload_success.html | 2 +- 5 files changed, 2 insertions(+), 17 deletions(-) diff --git a/filed/Cargo.lock b/filed/Cargo.lock index deec126..b2d1ea5 100644 --- a/filed/Cargo.lock +++ b/filed/Cargo.lock @@ -176,17 +176,6 @@ dependencies = [ "memchr", ] -[[package]] -name = "compile-time-run" -version = "0.2.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43b5affba7c91c039a483065125dd8c6d4a0985e1e9ac5ab6dffdea4fe4e637f" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", -] - [[package]] name = "core-foundation-sys" version = "0.8.4" @@ -275,7 +264,6 @@ dependencies = [ "askama", "bytes", "chrono", - "compile-time-run", "dotenvy", "femme", "futures-util", diff --git a/filed/Cargo.toml b/filed/Cargo.toml index 9a8cb04..deacc7b 100644 --- a/filed/Cargo.toml +++ b/filed/Cargo.toml @@ -9,7 +9,6 @@ edition = "2021" askama = "0.12.0" bytes = "1.5.0" chrono = { version = "0.4.31", features = ["serde"] } -compile-time-run = "0.2.12" dotenvy = "0.15.7" femme = "2.2.1" futures-util = "0.3.28" diff --git a/filed/src/env.rs b/filed/src/env.rs index 9512891..f561384 100644 --- a/filed/src/env.rs +++ b/filed/src/env.rs @@ -5,8 +5,6 @@ use std::{env::var, net::SocketAddr, path::Path, fs}; -use compile_time_run::run_command_str; - #[derive(Debug, Clone)] pub struct Redis { pub pass: String, diff --git a/filed/src/web/uploaded.rs b/filed/src/web/uploaded.rs index 20e5c93..acaa222 100644 --- a/filed/src/web/uploaded.rs +++ b/filed/src/web/uploaded.rs @@ -1,4 +1,4 @@ -use warp::{Filter, reply::{Reply, html}, reject::Rejection}; +use warp::{Filter, reply::Reply, reject::Rejection}; use super::{state::SharedState, rejection::HttpReject}; diff --git a/filed/templates/upload_success.html b/filed/templates/upload_success.html index 44e6c87..6d1bcc9 100644 --- a/filed/templates/upload_success.html +++ b/filed/templates/upload_success.html @@ -24,7 +24,7 @@ {% block body %} -
+

File uploaded successfully!

It is available via the