Skip to content

Commit

Permalink
Merge branch 'master' into timmc/encode-test
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioBenitez authored Dec 2, 2024
2 parents cb7164b + f058f6e commit 67e491d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
8 changes: 2 additions & 6 deletions core/codegen/src/attribute/route/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,12 +266,8 @@ fn internal_uri_macro_decl(route: &Route) -> TokenStream {
route.attr.method.as_ref().map(|m| m.0.hash(&mut hasher));
route.attr.uri.path().hash(&mut hasher);
route.attr.uri.query().hash(&mut hasher);
if let Some(data) = &route.attr.data {
data.value.hash(&mut hasher);
}
if let Some(format) = &route.attr.format {
format.0.hash(&mut hasher);
}
route.attr.data.as_ref().map(|d| d.value.hash(&mut hasher));
route.attr.format.as_ref().map(|f| f.0.hash(&mut hasher));
});

let route_uri = route.attr.uri.to_string();
Expand Down
4 changes: 2 additions & 2 deletions core/lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,14 @@ version = "2.1.0"
optional = true

[dependencies.s2n-quic]
version = "1.36"
version = "1.51"
default-features = false
features = ["provider-address-token-default", "provider-tls-rustls"]
optional = true

[dependencies.s2n-quic-h3]
git = "https://github.com/SergioBenitez/s2n-quic-h3.git"
rev = "6613956"
rev = "f832471"
optional = true

[target.'cfg(unix)'.dependencies]
Expand Down
2 changes: 1 addition & 1 deletion core/lib/src/request/from_param.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ use crate::http::uri::{Segments, error::PathError, fmt::Path};
/// If `usize::from_param` returns an `Ok(usize)` variant, the encapsulated
/// value is used as the `id` function parameter. If not, the request is
/// forwarded to the next matching route. Since there are no additional matching
/// routes, this example will result in a 404 error for requests with invalid
/// routes, this example will result in a 422 error for requests with invalid
/// `id` values.
///
/// # Catching Errors
Expand Down

0 comments on commit 67e491d

Please sign in to comment.