Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style(*): apply some lint suggestions #474

Merged
merged 3 commits into from
Jul 18, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: unwrap is not eaual to "if some"
  • Loading branch information
siyou committed Jul 18, 2023
commit eeb033d21acd7cdccb78aa0a02ca7c13e3466ef2
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ impl Visit for DefinedIdentsCollector {
self.defined_idents.insert(bi.id.to_string());
}
Pat::Array(array_pat) => {
for elem in &array_pat.elems {
self.visit_pat(elem.as_ref().unwrap());
for elem in array_pat.elems.iter().flatten() {
self.visit_pat(elem);
}
}
Pat::Rest(rest_pat) => {
Expand Down
Loading