Skip to content

Commit 01865bb

Browse files
npmccallumfee1-dead
authored andcommitted
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.
1 parent 79f813c commit 01865bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/items.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1165,8 +1165,8 @@ pub(crate) fn format_trait(
11651165
let mut result = String::with_capacity(128);
11661166
let header = format!(
11671167
"{}{}{}{}trait ",
1168-
format_constness(constness),
11691168
format_visibility(context, &item.vis),
1169+
format_constness(constness),
11701170
format_safety(safety),
11711171
format_auto(is_auto),
11721172
);

0 commit comments

Comments
 (0)