Squelch warnings in webidl tests

This commit is contained in:
Alex Crichton
2018-09-18 14:30:01 -07:00
parent 9baee66bf3
commit 300aca38c2
2 changed files with 3 additions and 7 deletions

View File

@ -1061,15 +1061,15 @@ impl ToTokens for ast::Const {
// again no suffix
// panics on +-inf, nan
FloatLiteral(f) => {
let f = Literal::f64_unsuffixed(f);
let f = Literal::f64_suffixed(f);
quote!(#f)
},
SignedIntegerLiteral(i) => {
let i = Literal::i64_unsuffixed(i);
let i = Literal::i64_suffixed(i);
quote!(#i)
},
UnsignedIntegerLiteral(i) => {
let i = Literal::u64_unsuffixed(i);
let i = Literal::u64_suffixed(i);
quote!(#i)
},
Null => unimplemented!(),