Use fully qualified path for mem

When building with --no-default-features the compiler emits:

  warning: unused import: `mem`

The call site is feature gated so we either need to feature gate the
import or use a fully qualified path. Since 'core' is quite short elect
to use the fully qualified path.
This commit is contained in:
Tobin Harding 2022-01-26 10:00:35 +11:00
parent f7d637e6aa
commit 632ecc4530
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
#![allow(non_camel_case_types)]
use core::{fmt, mem};
use core::fmt;
pub type c_int = i32;
pub type c_uchar = u8;
@ -46,7 +46,7 @@ impl AlignedType {
}
#[cfg(all(feature = "std", not(rust_secp_no_symbol_renaming)))]
pub(crate) const ALIGN_TO: usize = mem::align_of::<AlignedType>();
pub(crate) const ALIGN_TO: usize = ::core::mem::align_of::<AlignedType>();
#[cfg(test)]
mod tests {