Skip to content

Commit 604ecd9

Browse files
committed
Squelch warnings in webidl tests
1 parent bbc46f9 commit 604ecd9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/backend/src/codegen.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,15 +1065,15 @@ impl ToTokens for ast::Const {
10651065
// again no suffix
10661066
// panics on +-inf, nan
10671067
FloatLiteral(f) => {
1068-
let f = Literal::f64_unsuffixed(f);
1068+
let f = Literal::f64_suffixed(f);
10691069
quote!(#f)
10701070
},
10711071
SignedIntegerLiteral(i) => {
1072-
let i = Literal::i64_unsuffixed(i);
1072+
let i = Literal::i64_suffixed(i);
10731073
quote!(#i)
10741074
},
10751075
UnsignedIntegerLiteral(i) => {
1076-
let i = Literal::u64_unsuffixed(i);
1076+
let i = Literal::u64_suffixed(i);
10771077
quote!(#i)
10781078
},
10791079
Null => unimplemented!(),

0 commit comments

Comments
 (0)