This commit is contained in:
@ -6,14 +6,14 @@ use std::sync::mpsc;
|
||||
use std::task::{Context, Poll};
|
||||
|
||||
use actix::dev::Stream;
|
||||
use actix_web::HttpServer;
|
||||
use actix_web::dev::ServiceRequest;
|
||||
use actix_web::middleware::Logger;
|
||||
use actix_web::web::Bytes;
|
||||
use actix_web::HttpServer;
|
||||
use actix_web::{web, App, HttpResponse};
|
||||
use actix_web::{App, HttpResponse, web};
|
||||
use actix_web_httpauth::extractors;
|
||||
use actix_web_httpauth::extractors::basic::BasicAuth;
|
||||
use actix_web_httpauth::extractors::AuthenticationError;
|
||||
use actix_web_httpauth::extractors::basic::BasicAuth;
|
||||
use actix_web_httpauth::middleware::HttpAuthentication;
|
||||
use askama::Template;
|
||||
use clap::Parser;
|
||||
@ -60,7 +60,7 @@ fn recurse_scan<B: AsRef<Path>>(dir: B) -> Vec<PathBuf> {
|
||||
let mut list = vec![];
|
||||
for file in dir.read_dir().unwrap() {
|
||||
let file = file.unwrap();
|
||||
list.append(&mut recurse_scan(&file.path()));
|
||||
list.append(&mut recurse_scan(file.path()));
|
||||
}
|
||||
|
||||
list
|
||||
|
Reference in New Issue
Block a user