fix a constness ordering bug in rustfmt

Normally, changes to rustfmt go into the separate repo. But, in
this case, the bug is introduced in a local change and therefore
isn't present in the rustfmt repo.
This commit is contained in:
Nathaniel McCallum 2025-09-01 08:55:25 -04:00
parent 84a1747022
commit 8dfd6b8ec2

View file

@ -1175,8 +1175,8 @@ pub(crate) fn format_trait(
let mut result = String::with_capacity(128);
let header = format!(
"{}{}{}{}trait ",
format_constness(constness),
format_visibility(context, &item.vis),
format_constness(constness),
format_safety(safety),
format_auto(is_auto),
);