iter 22b.3.4: fix — quality-review (zero-arg test, drop what-comments + param-name pin)
This commit is contained in:
@@ -359,7 +359,6 @@ pub fn synthesise_mono_fn(
|
||||
Type::Fn { params, .. } if !params.is_empty()
|
||||
);
|
||||
let (params, body): (Vec<String>, Term) = if method_has_params {
|
||||
// Method has positional params — body must be a Lam.
|
||||
match body_term {
|
||||
Term::Lam { params, body, .. } => (params, *body),
|
||||
other => {
|
||||
@@ -371,7 +370,6 @@ pub fn synthesise_mono_fn(
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// Zero-arg method — body is the value directly.
|
||||
(Vec::new(), body_term)
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user