Skip to content

Commit a2360d1

Browse files
Gabi Ganampvdrz
Gabi Ganam
authored andcommitted
Fix generated constants: f64::INFINITY, f64::NEG_ INFINITY, f64::NAN
#2853
1 parent 22a1b72 commit a2360d1

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

bindgen/codegen/helpers.rs

-2
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,6 @@ pub(crate) mod ast_ty {
311311
return Ok(quote!(#val));
312312
}
313313

314-
let prefix = ctx.trait_prefix();
315-
316314
if f.is_nan() {
317315
return Ok(quote! {
318316
f64::NAN

0 commit comments

Comments
 (0)