put apostrophe around char constant

Signed-off-by: Axel Nennker <axel.nennker@telekom.de>
This commit is contained in:
Axel Nennker
2019-04-13 12:45:43 +02:00
committed by Emilio Cobos Álvarez
parent ba02367253
commit 28b3eaf4f2
+1 -1
View File
@@ -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),
..