🚨 refactor: fix some clippy / cargo check warnings
parent
78bffc74c3
commit
e865ac56c7
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue