Skip to content

Commit

Permalink
fixed clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sheshnath-at-knoldus committed Aug 1, 2024
1 parent 4eb6cdf commit 9fa1957
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions core/codegen/src/attribute/route/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,12 @@ fn internal_uri_macro_decl(route: &Route) -> TokenStream {
route.attr.method.0.hash(&mut hasher);
route.attr.uri.path().hash(&mut hasher);
route.attr.uri.query().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));
if let Some(data) = &route.attr.data {
data.value.hash(&mut hasher);
}
if let Some(format) = &route.attr.format {
format.0.hash(&mut hasher);
}
});

let route_uri = route.attr.uri.to_string();
Expand Down

0 comments on commit 9fa1957

Please sign in to comment.