Skip to content

Commit

Permalink
fix clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
shuding committed Jan 22, 2024
1 parent af4d732 commit 73286e9
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ impl<C: Comments> VisitMut for ServerActions<C> {
self.rewrite_expr_to_proxy_expr = None;
n.visit_mut_children_with(self);
if let Some(expr) = &self.rewrite_expr_to_proxy_expr {
*n = (**expr).clone().into();
*n = (**expr).clone();
self.rewrite_expr_to_proxy_expr = None;
}
}
Expand Down Expand Up @@ -1121,10 +1121,7 @@ impl<C: Comments> VisitMut for ServerActions<C> {
noop_visit_mut_type!();
}

fn retain_names_from_declared_idents(
child_names: &mut Vec<Name>,
current_declared_idents: &Vec<Id>,
) {
fn retain_names_from_declared_idents(child_names: &mut Vec<Name>, current_declared_idents: &[Id]) {
// Collect all the identifiers defined inside the closure and used
// in the action function. With deduplication.
let mut added_names = Vec::new();
Expand Down

0 comments on commit 73286e9

Please sign in to comment.