🚨 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::{ use std::{
collections::HashMap, collections::HashMap,
convert::TryFrom, convert::TryFrom,
path::{PathBuf},
sync::Arc,
}; };
use chrono::{DateTime, Utc}; use chrono::{DateTime, Utc};
use dashmap::DashMap; use dashmap::DashMap;
use handlebars::Handlebars;
use tokio::sync::{ use tokio::sync::{
Mutex, Mutex,
RwLock, RwLock,
@ -20,7 +17,6 @@ use crate::{
Config, Config,
RelayError, RelayError,
ShuttingDownError, ShuttingDownError,
load_templates,
}; };
use ptth_core::http_serde; use ptth_core::http_serde;

View File

@ -69,9 +69,9 @@ the old ones deprecated.
Endpoints needed: Endpoints needed:
- Query server list - ( ) Query server list
- Query directory in server - ( ) Query directory in server
- GET file with byte range (identical to frontend file API) - ( ) 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. 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 For compatibility with wget spidering, I _might_ do XML or HTML that's

View File

@ -187,7 +187,6 @@ fn scraper_endpoints () {
Err (_) => { Err (_) => {
// Probably a reqwest error cause the port is in // Probably a reqwest error cause the port is in
// use or something. Try again. // use or something. Try again.
()
}, },
Ok (x) => { Ok (x) => {
resp = Some (x); resp = Some (x);