From 632ecc4530a05baa34585fc9975a4264065735fa Mon Sep 17 00:00:00 2001 From: Tobin Harding Date: Wed, 26 Jan 2022 10:00:35 +1100 Subject: [PATCH] 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. --- secp256k1-sys/src/types.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/secp256k1-sys/src/types.rs b/secp256k1-sys/src/types.rs index 630e42e..e257d43 100644 --- a/secp256k1-sys/src/types.rs +++ b/secp256k1-sys/src/types.rs @@ -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::(); +pub(crate) const ALIGN_TO: usize = ::core::mem::align_of::(); #[cfg(test)] mod tests {