diff --git a/tss-esapi/src/context/tpm_commands/object_commands/create_command_output.rs b/tss-esapi/src/context/tpm_commands/object_commands/create_command_output.rs index b36b649d3..1874d704f 100644 --- a/tss-esapi/src/context/tpm_commands/object_commands/create_command_output.rs +++ b/tss-esapi/src/context/tpm_commands/object_commands/create_command_output.rs @@ -82,7 +82,8 @@ impl TryFrom for CreateKeyResult { let creation_ticket_owned = unsafe { take_from_esys(ffi_data_handler.ffi_creation_ticket_ptr)? }; - ffi_data_handler.ffi_creation_ticket_ptr = null_mut(); + //#[allow(unused_assignments)] + //ffi_data_handler.ffi_creation_ticket_ptr = null_mut(); Ok(CreateKeyResult { out_private: Private::try_from(out_private_owned)?, diff --git a/tss-esapi/src/lib.rs b/tss-esapi/src/lib.rs index 1fe9fea3c..41f81386d 100644 --- a/tss-esapi/src/lib.rs +++ b/tss-esapi/src/lib.rs @@ -29,6 +29,7 @@ missing_copy_implementations, rustdoc::broken_intra_doc_links, )] +#![feature(stmt_expr_attributes)] //! # TSS 2.0 Rust Wrapper over Enhanced System API //! This crate exposes the functionality of the TCG Software Stack Enhanced System API to diff --git a/tss-esapi/src/traits.rs b/tss-esapi/src/traits.rs index 0d8febae8..21568e346 100644 --- a/tss-esapi/src/traits.rs +++ b/tss-esapi/src/traits.rs @@ -179,6 +179,7 @@ macro_rules! impl_mu_complex { // Make the macros usable outside of the module. pub(crate) use impl_marshall_trait; +#[allow(unused_imports)] pub(crate) use impl_mu_aliases; pub(crate) use impl_mu_complex; pub(crate) use impl_mu_simple;