clean up warnings

This commit is contained in:
bunnie 2021-06-27 03:12:00 +08:00
parent 98dfce7ec2
commit 6ee5e8aeb1
3 changed files with 3 additions and 0 deletions

View file

@ -64,6 +64,7 @@ extern crate serde;
#[macro_use]
pub(crate) mod macros;
#[allow(unused_imports)]
#[cfg(any(feature = "betrusted", test))]
#[macro_use]
extern crate engine25519_as;

View file

@ -194,6 +194,7 @@ use traits::{MultiscalarMul, VartimeMultiscalarMul, VartimePrecomputedMultiscala
feature = "simd_backend",
any(target_feature = "avx2", target_feature = "avx512ifma")
)))]
#[cfg(not(feature = "betrusted"))]
use backend::serial::scalar_mul;
#[cfg(all(
feature = "simd_backend",

View file

@ -998,6 +998,7 @@ impl Scalar {
/// Returns a size hint indicating how many entries of the return
/// value of `to_radix_2w` are nonzero.
#[cfg(not(feature = "betrusted"))]
pub(crate) fn to_radix_2w_size_hint(w: usize) -> usize {
debug_assert!(w >= 4);
debug_assert!(w <= 8);