refactor: remove needless borrow on static file and handle modules
Diff
src/handler.rs | 2 +-
src/static_files.rs | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
@@ -76,7 +76,7 @@ impl RequestHandler {
if self.opts.cache_control_headers {
control_headers::append_headers(&uri_path, &mut resp);
control_headers::append_headers(uri_path, &mut resp);
}
@@ -234,7 +234,7 @@ async fn read_directory_entries(
);
}
let current_path = percent_decode_str(&base_path).decode_utf8()?.to_owned();
let current_path = percent_decode_str(base_path).decode_utf8()?.to_owned();
let dirs_str = if dirs_count == 1 {
"directory"
} else {