We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9efb6ca commit 89ea3f0Copy full SHA for 89ea3f0
starlark_syntax/src/syntax/uniplate.rs
@@ -557,15 +557,12 @@ impl<P: AstPayload> ExprP<P> {
557
&mut self,
558
f: &mut impl FnMut(&mut AstTypeExprP<P>) -> Result<(), E>,
559
) -> Result<(), E> {
560
- match self {
561
- ExprP::Lambda(lambda) => {
562
- for param in &mut lambda.params {
563
- if let (_, Some(ty), _) = param.split_mut() {
564
- f(ty)?;
565
- }
+ if let ExprP::Lambda(lambda) = self {
+ for param in &mut lambda.params {
+ if let (_, Some(ty), _) = param.split_mut() {
+ f(ty)?;
566
}
567
568
- _ => {}
569
570
self.visit_expr_err_mut(|expr| expr.visit_type_expr_err_mut(f))
571
0 commit comments