Skip to content

Commit a4fc6b1

Browse files
committed
Fix duplication of braces around const generic argument in non-full mode
1 parent d757cf4 commit a4fc6b1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/path.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,9 @@ pub(crate) mod printing {
697697
#[cfg(feature = "full")]
698698
Expr::Block(_) => expr.to_tokens(tokens),
699699

700+
#[cfg(not(feature = "full"))]
701+
Expr::Verbatim(_) => expr.to_tokens(tokens),
702+
700703
// ERROR CORRECTION: Add braces to make sure that the
701704
// generated code is valid.
702705
_ => token::Brace::default().surround(tokens, |tokens| {

0 commit comments

Comments
 (0)