From 10cb4737703c842735f8b08126da47d820026f67 Mon Sep 17 00:00:00 2001 From: Mikhail Volkhov Date: Tue, 19 Nov 2024 19:56:16 +0000 Subject: [PATCH] Suppress improper_ctypes_definitions warnings --- src/lib/crypto/kimchi_bindings/wasm/src/projective.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/crypto/kimchi_bindings/wasm/src/projective.rs b/src/lib/crypto/kimchi_bindings/wasm/src/projective.rs index 63f524859e2f..26b3655d62f0 100644 --- a/src/lib/crypto/kimchi_bindings/wasm/src/projective.rs +++ b/src/lib/crypto/kimchi_bindings/wasm/src/projective.rs @@ -75,12 +75,18 @@ macro_rules! impl_projective { proj.into() } + // improper_ctypes_definitions is allowed here because the CamlBase/ScalarField struct + // already has #[repr(C)] in its definition + #[allow(improper_ctypes_definitions)] #[wasm_bindgen] pub extern "C" fn []() -> $CamlBaseField { let (endo_q, _endo_r) = poly_commitment::srs::endos::(); endo_q.into() } + // improper_ctypes_definitions is allowed here because the CamlBase/ScalarField struct + // already has #[repr(C)] in its definition + #[allow(improper_ctypes_definitions)] #[wasm_bindgen] pub extern "C" fn []() -> $CamlScalarField { let (_endo_q, endo_r) = poly_commitment::srs::endos::();