mirror of
https://github.com/saymrwulf/betrusted-curve25519-dalek-source.git
synced 2026-09-08 21:00:38 +00:00
clean up warnings
This commit is contained in:
parent
98dfce7ec2
commit
6ee5e8aeb1
3 changed files with 3 additions and 0 deletions
|
|
@ -64,6 +64,7 @@ extern crate serde;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
pub(crate) mod macros;
|
pub(crate) mod macros;
|
||||||
|
|
||||||
|
#[allow(unused_imports)]
|
||||||
#[cfg(any(feature = "betrusted", test))]
|
#[cfg(any(feature = "betrusted", test))]
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate engine25519_as;
|
extern crate engine25519_as;
|
||||||
|
|
|
||||||
|
|
@ -194,6 +194,7 @@ use traits::{MultiscalarMul, VartimeMultiscalarMul, VartimePrecomputedMultiscala
|
||||||
feature = "simd_backend",
|
feature = "simd_backend",
|
||||||
any(target_feature = "avx2", target_feature = "avx512ifma")
|
any(target_feature = "avx2", target_feature = "avx512ifma")
|
||||||
)))]
|
)))]
|
||||||
|
#[cfg(not(feature = "betrusted"))]
|
||||||
use backend::serial::scalar_mul;
|
use backend::serial::scalar_mul;
|
||||||
#[cfg(all(
|
#[cfg(all(
|
||||||
feature = "simd_backend",
|
feature = "simd_backend",
|
||||||
|
|
|
||||||
|
|
@ -998,6 +998,7 @@ impl Scalar {
|
||||||
|
|
||||||
/// Returns a size hint indicating how many entries of the return
|
/// Returns a size hint indicating how many entries of the return
|
||||||
/// value of `to_radix_2w` are nonzero.
|
/// value of `to_radix_2w` are nonzero.
|
||||||
|
#[cfg(not(feature = "betrusted"))]
|
||||||
pub(crate) fn to_radix_2w_size_hint(w: usize) -> usize {
|
pub(crate) fn to_radix_2w_size_hint(w: usize) -> usize {
|
||||||
debug_assert!(w >= 4);
|
debug_assert!(w >= 4);
|
||||||
debug_assert!(w <= 8);
|
debug_assert!(w <= 8);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue