Skip to content

Commit

Permalink
Revert unnecessary change for clippy.
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioBenitez committed Dec 2, 2024
1 parent ebfcbd2 commit b453bd5
Showing 1 changed file with 2 additions and 6 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

0 comments on commit b453bd5

Please sign in to comment.