aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2022-10-28 14:03:05 +0200
committerMartin Fischer <martin@push-f.com>2022-10-28 14:03:05 +0200
commit95aa0534320a6b077a6063b612a099dd3d9d4145 (patch)
treecd6e0ab7de62bb8b53a2afed9a184f3adcb9e5f2 /src/main.rs
parent6d2b42da54335682bf5ba25277323daafca16808 (diff)
refactor: some linter fixes
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index e82cfae..a08d192 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -348,7 +348,7 @@ async fn build_response<C: Controller>(
let mut comps = Vec::new();
// prevent directory traversal attacks
- for comp in Utf8Path::new(&*unsanitized_path).components() {
+ for comp in Utf8Path::new(unsanitized_path).components() {
match comp {
Utf8Component::Normal(name) => comps.push(name),
Utf8Component::ParentDir => {