Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechu10 committed Jan 4, 2025
1 parent 60669a2 commit 5a45109
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/sycamore-view-parser/src/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,9 @@ fn is_dyn_pattern(pat: &Pat) -> bool {
fn is_dyn_macro(m: &syn::Macro) -> bool {
// Bodies of nested inner view! macros will be checked for dynamic
// parts when their own codegen is run.
!m.path
m.path
.get_ident()
.is_some_and(|ident| "view" == &ident.to_string())
.is_none_or(|ident| "view" != &ident.to_string())
}

fn is_dyn_block(block: &syn::Block) -> bool {
Expand Down

0 comments on commit 5a45109

Please sign in to comment.