Skip to content

Commit e523c36

Browse files
committed
Directly call more specific expr ToTokens impl
1 parent 24c48cd commit e523c36

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/path.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -692,13 +692,13 @@ pub(crate) mod printing {
692692
GenericArgument::Lifetime(lt) => lt.to_tokens(tokens),
693693
GenericArgument::Type(ty) => ty.to_tokens(tokens),
694694
GenericArgument::Const(expr) => match expr {
695-
Expr::Lit(_) => expr.to_tokens(tokens),
695+
Expr::Lit(expr) => expr.to_tokens(tokens),
696696

697697
#[cfg(feature = "full")]
698-
Expr::Block(_) => expr.to_tokens(tokens),
698+
Expr::Block(expr) => expr.to_tokens(tokens),
699699

700700
#[cfg(not(feature = "full"))]
701-
Expr::Verbatim(_) => expr.to_tokens(tokens),
701+
Expr::Verbatim(expr) => expr.to_tokens(tokens),
702702

703703
// ERROR CORRECTION: Add braces to make sure that the
704704
// generated code is valid.

0 commit comments

Comments
 (0)