Skip to content

Commit 8dfd6b8

Browse files
committed
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 84a1747 commit 8dfd6b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/rustfmt/src/items.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1175,8 +1175,8 @@ pub(crate) fn format_trait(
11751175
let mut result = String::with_capacity(128);
11761176
let header = format!(
11771177
"{}{}{}{}trait ",
1178-
format_constness(constness),
11791178
format_visibility(context, &item.vis),
1179+
format_constness(constness),
11801180
format_safety(safety),
11811181
format_auto(is_auto),
11821182
);

0 commit comments

Comments
 (0)