match the render macro as well

This commit is contained in:
Evan Almloff committed 2022-12-20 14:32:04 -06:00
1 parent c5ac7698fa
commit fb7c55f9bd
2 files changed
+29 -4

No files matched your search

+9 -3
View File
@@ -424,8 +424,14 @@ fn find_rsx_expr(
let new_mac = &new_expr.mac;
let old_mac = &old_expr.mac;
if new_mac.path.get_ident().map(|ident| ident.to_string()) == Some("rsx".to_string())
&& old_mac.path.get_ident().map(|ident| ident.to_string())
== Some("rsx".to_string())
&& matches!(
old_mac
.path
.get_ident()
.map(|ident| ident.to_string())
.as_deref(),
Some("rsx" | "render")
)
{
rsx_calls.push((old_mac.clone(), new_mac.tokens.clone()));
false
@@ -611,4 +617,4 @@ fn find_rsx_expr(
(syn::Expr::Verbatim(_), syn::Expr::Verbatim(_)) => false,
_ => true,
}
}
}