diff options
| author | Fuwn <[email protected]> | 2023-04-06 08:35:28 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-04-06 08:35:28 +0000 |
| commit | 36d26e15f23f2eec98c17aa51209b56005193f1d (patch) | |
| tree | 5e6d83775034b3123d19d1553cbe82ab823ed999 /src/context/route.rs | |
| parent | fix(context): custom parameters format for easy lifetimes (diff) | |
| download | windmark-36d26e15f23f2eec98c17aa51209b56005193f1d.tar.xz windmark-36d26e15f23f2eec98c17aa51209b56005193f1d.zip | |
refactor(context): rename params to parameters
Diffstat (limited to 'src/context/route.rs')
| -rw-r--r-- | src/context/route.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/context/route.rs b/src/context/route.rs index a39ad0b..d1b86a6 100644 --- a/src/context/route.rs +++ b/src/context/route.rs @@ -27,7 +27,7 @@ use url::Url; pub struct RouteContext { pub peer_address: Option<std::net::SocketAddr>, pub url: Url, - pub params: HashMap<String, String>, + pub parameters: HashMap<String, String>, pub certificate: Option<X509>, } @@ -36,13 +36,13 @@ impl RouteContext { pub fn new( peer_address: std::io::Result<std::net::SocketAddr>, url: Url, - params: &Params<'_, '_>, + parameters: &Params<'_, '_>, certificate: Option<X509>, ) -> Self { Self { peer_address: peer_address.ok(), url, - params: crate::utilities::params_to_hashmap(params), + parameters: crate::utilities::params_to_hashmap(parameters), certificate, } } |