🚨 refactor: fix some clippy / cargo check warnings

main
_ 2020-12-13 20:05:52 -06:00
parent 78bffc74c3
commit e865ac56c7
3 changed files with 3 additions and 8 deletions

View File

@ -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;

View File

@ -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

View File

@ -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);