Skip to content

Commit a1cfe86

Browse files
committed
parse const trait Trait
1 parent c5916cf commit a1cfe86

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/items.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1172,6 +1172,7 @@ pub(crate) fn format_trait(
11721172
unreachable!();
11731173
};
11741174
let ast::Trait {
1175+
constness,
11751176
is_auto,
11761177
safety,
11771178
ident,
@@ -1182,7 +1183,8 @@ pub(crate) fn format_trait(
11821183

11831184
let mut result = String::with_capacity(128);
11841185
let header = format!(
1185-
"{}{}{}trait ",
1186+
"{}{}{}{}trait ",
1187+
format_constness(constness),
11861188
format_visibility(context, &item.vis),
11871189
format_safety(safety),
11881190
format_auto(is_auto),

0 commit comments

Comments
 (0)