Skip to content

Commit 889d3c1

Browse files
committed
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.
1 parent dbf92db commit 889d3c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

secp256k1-sys/src/types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![allow(non_camel_case_types)]
2-
use core::{fmt, mem};
2+
use core::fmt;
33

44
pub type c_int = i32;
55
pub type c_uchar = u8;
@@ -46,7 +46,7 @@ impl AlignedType {
4646
}
4747

4848
#[cfg(all(feature = "std", not(rust_secp_no_symbol_renaming)))]
49-
pub(crate) const ALIGN_TO: usize = mem::align_of::<AlignedType>();
49+
pub(crate) const ALIGN_TO: usize = ::core::mem::align_of::<AlignedType>();
5050

5151
#[cfg(test)]
5252
mod tests {

0 commit comments

Comments
 (0)