Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
NexVeridian committed Nov 28, 2024
1 parent 1f4cc8f commit 4ac3c6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controller/middleware/remote_ip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ fn maybe_get_forwarded(

let forwarded = xffs.join(",");

return forwarded
forwarded
.split(',')
.map(str::trim)
.map(str::parse)
Expand Down Expand Up @@ -179,7 +179,7 @@ fn maybe_get_forwarded(
> The first trustworthy X-Forwarded-For IP address may belong to an untrusted intermediate
> proxy rather than the actual client computer, but it is the only IP suitable for security uses.
*/
.next_back();
.next_back()
}

#[derive(Copy, Clone, Debug)]
Expand Down

0 comments on commit 4ac3c6e

Please sign in to comment.