fix: better formating for validator
This commit is contained in:
parent
a044c3580e
commit
e647330433
|
@ -589,7 +589,11 @@ impl<'comments> Formatter<'comments> {
|
||||||
.to_doc()
|
.to_doc()
|
||||||
.append(" ")
|
.append(" ")
|
||||||
.append(fun.name.as_str())
|
.append(fun.name.as_str())
|
||||||
.append(wrap_args(params.iter().map(|e| (self.fn_arg(e), false))));
|
.append(if !params.is_empty() {
|
||||||
|
wrap_args(params.iter().map(|e| (self.fn_arg(e), false)))
|
||||||
|
} else {
|
||||||
|
"".to_doc()
|
||||||
|
});
|
||||||
|
|
||||||
// Stick it all together
|
// Stick it all together
|
||||||
let inner_fn = head
|
let inner_fn = head
|
||||||
|
|
Loading…
Reference in New Issue