put apostrophe around char constant
Signed-off-by: Axel Nennker <axel.nennker@telekom.de>
This commit is contained in:
committed by
Emilio Cobos Álvarez
parent
ba02367253
commit
28b3eaf4f2
@@ -151,7 +151,7 @@ impl Literal {
|
||||
syn::Expr::Lit(syn::ExprLit {
|
||||
lit: syn::Lit::Char(ref value),
|
||||
..
|
||||
}) => Ok(Literal::Expr(format!("{}", value.value()))),
|
||||
}) => Ok(Literal::Expr(format!("'{}'", value.value()))),
|
||||
syn::Expr::Lit(syn::ExprLit {
|
||||
lit: syn::Lit::Int(ref value),
|
||||
..
|
||||
|
||||
Reference in New Issue
Block a user