tag arguments are in InTypeParam position

This commit is contained in:
Folkert 2021-01-04 23:50:38 +01:00
parent 9227464de8
commit 1126957739

View file

@ -1891,7 +1891,7 @@ fn diff_tag_union<'b>(
alloc.tag_name(field.clone()),
// TODO add spaces between args
args.iter()
.map(|arg| to_doc(alloc, Parens::Unnecessary, arg.clone()))
.map(|arg| to_doc(alloc, Parens::InTypeParam, arg.clone()))
.collect(),
)
};