Merge pull request #315 from LNP-BP/fix/feat-warning

Fixing warning in context mod under feature-specific compilation
This commit is contained in:
Elichai Turkel 2021-06-30 15:32:35 +03:00 committed by GitHub
commit ea4eae8a20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
use core::marker::PhantomData; use core::marker::PhantomData;
use core::mem::{self, ManuallyDrop}; use core::mem::ManuallyDrop;
use ffi::{self, CPtr, types::AlignedType}; use ffi::{self, CPtr, types::AlignedType};
use ffi::types::{c_uint, c_void}; use ffi::types::{c_uint, c_void};
use Error; use Error;
@ -105,7 +105,7 @@ mod alloc_only {
impl private::Sealed for VerifyOnly {} impl private::Sealed for VerifyOnly {}
use super::*; use super::*;
const ALIGN_TO: usize = mem::align_of::<AlignedType>(); const ALIGN_TO: usize = ::core::mem::align_of::<AlignedType>();
/// Represents the set of capabilities needed for signing. /// Represents the set of capabilities needed for signing.
pub enum SignOnly {} pub enum SignOnly {}