From e865ac56c7c1b561a994defb72636e44ea1bfed0 Mon Sep 17 00:00:00 2001 From: _ <_@_> Date: Sun, 13 Dec 2020 20:05:52 -0600 Subject: [PATCH] :rotating_light: refactor: fix some clippy / cargo check warnings --- crates/ptth_relay/src/relay_state.rs | 4 ---- issues/2020-12Dec/auth-route-YNQAQKJS.md | 6 +++--- src/tests.rs | 1 - 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/crates/ptth_relay/src/relay_state.rs b/crates/ptth_relay/src/relay_state.rs index f91d76a..d7afcbf 100644 --- a/crates/ptth_relay/src/relay_state.rs +++ b/crates/ptth_relay/src/relay_state.rs @@ -1,13 +1,10 @@ use std::{ collections::HashMap, convert::TryFrom, - path::{PathBuf}, - sync::Arc, }; use chrono::{DateTime, Utc}; use dashmap::DashMap; -use handlebars::Handlebars; use tokio::sync::{ Mutex, RwLock, @@ -20,7 +17,6 @@ use crate::{ Config, RelayError, ShuttingDownError, - load_templates, }; use ptth_core::http_serde; diff --git a/issues/2020-12Dec/auth-route-YNQAQKJS.md b/issues/2020-12Dec/auth-route-YNQAQKJS.md index e6d4319..bfff13d 100644 --- a/issues/2020-12Dec/auth-route-YNQAQKJS.md +++ b/issues/2020-12Dec/auth-route-YNQAQKJS.md @@ -69,9 +69,9 @@ the old ones deprecated. Endpoints needed: -- Query server list -- Query directory in server -- GET file with byte range (identical to frontend file API) +- ( ) Query server list +- ( ) Query directory in server +- ( ) GET file with byte range (identical to frontend file API) These will all be JSON for now since Python, Rust, C++, C#, etc. can handle it. For compatibility with wget spidering, I _might_ do XML or HTML that's diff --git a/src/tests.rs b/src/tests.rs index ad5a9be..b3cf8a8 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -187,7 +187,6 @@ fn scraper_endpoints () { Err (_) => { // Probably a reqwest error cause the port is in // use or something. Try again. - () }, Ok (x) => { resp = Some (x);