We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
f64::INFINITY
f64::NEG_ INFINITY
f64::NAN
1 parent 1078f1b commit 9c7b404Copy full SHA for 9c7b404
bindgen/codegen/helpers.rs
@@ -302,7 +302,6 @@ pub(crate) mod ast_ty {
302
}
303
304
pub(crate) fn float_expr(
305
- ctx: &BindgenContext,
306
f: f64,
307
) -> Result<TokenStream, ()> {
308
if f.is_finite() {
bindgen/codegen/mod.rs
@@ -756,7 +756,7 @@ impl CodeGenerator for Var {
756
757
758
VarType::Float(f) => {
759
- if let Ok(expr) = helpers::ast_ty::float_expr(ctx, f) {
+ if let Ok(expr) = helpers::ast_ty::float_expr(f) {
760
result.push(quote! {
761
#(#attrs)*
762
pub const #canonical_ident : #ty = #expr ;
0 commit comments