Skip to content

Commit 0e7a2b1

Browse files
committed
bug: mark some unused things as allowed, and comment them out
1 parent 8c856a7 commit 0e7a2b1

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

tss-esapi/src/context/tpm_commands/object_commands/create_command_output.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ impl TryFrom<CreateCommandOutputHandler> for CreateKeyResult {
8282

8383
let creation_ticket_owned =
8484
unsafe { take_from_esys(ffi_data_handler.ffi_creation_ticket_ptr)? };
85-
ffi_data_handler.ffi_creation_ticket_ptr = null_mut();
85+
//#[allow(unused_assignments)]
86+
//ffi_data_handler.ffi_creation_ticket_ptr = null_mut();
8687

8788
Ok(CreateKeyResult {
8889
out_private: Private::try_from(out_private_owned)?,

tss-esapi/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
missing_copy_implementations,
3030
rustdoc::broken_intra_doc_links,
3131
)]
32+
#![feature(stmt_expr_attributes)]
3233

3334
//! # TSS 2.0 Rust Wrapper over Enhanced System API
3435
//! This crate exposes the functionality of the TCG Software Stack Enhanced System API to

tss-esapi/src/traits.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ macro_rules! impl_mu_complex {
179179

180180
// Make the macros usable outside of the module.
181181
pub(crate) use impl_marshall_trait;
182+
#[allow(unused_imports)]
182183
pub(crate) use impl_mu_aliases;
183184
pub(crate) use impl_mu_complex;
184185
pub(crate) use impl_mu_simple;

0 commit comments

Comments
 (0)