Skip to content

Commit 590788c

Browse files
Gabi Ganampvdrz
Gabi Ganam
authored andcommitted
Fix generated constants: f64::INFINITY, f64::NEG_ INFINITY, f64::NAN
#2853
1 parent a2c147b commit 590788c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

bindgen/codegen/helpers.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,7 @@ pub(crate) mod ast_ty {
301301
}
302302
}
303303

304-
pub(crate) fn float_expr(
305-
f: f64,
306-
) -> Result<TokenStream, ()> {
304+
pub(crate) fn float_expr(f: f64) -> Result<TokenStream, ()> {
307305
if f.is_finite() {
308306
let val = proc_macro2::Literal::f64_unsuffixed(f);
309307

0 commit comments

Comments
 (0)