Skip to content

Commit b453bd5

Browse files
committed
Revert unnecessary change for clippy.
1 parent ebfcbd2 commit b453bd5

File tree

1 file changed

+2
-6
lines changed
  • core/codegen/src/attribute/route

1 file changed

+2
-6
lines changed

core/codegen/src/attribute/route/mod.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -266,12 +266,8 @@ fn internal_uri_macro_decl(route: &Route) -> TokenStream {
266266
route.attr.method.as_ref().map(|m| m.0.hash(&mut hasher));
267267
route.attr.uri.path().hash(&mut hasher);
268268
route.attr.uri.query().hash(&mut hasher);
269-
if let Some(data) = &route.attr.data {
270-
data.value.hash(&mut hasher);
271-
}
272-
if let Some(format) = &route.attr.format {
273-
format.0.hash(&mut hasher);
274-
}
269+
route.attr.data.as_ref().map(|d| d.value.hash(&mut hasher));
270+
route.attr.format.as_ref().map(|f| f.0.hash(&mut hasher));
275271
});
276272

277273
let route_uri = route.attr.uri.to_string();

0 commit comments

Comments
 (0)