Skip to content

Commit 322303a

Browse files
committed
Fix clippy warnings/errors
Signed-off-by: Ionut Mihalcea <[email protected]>
1 parent 45d5166 commit 322303a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

tss-esapi-sys/build.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,13 @@ pub fn generate_from_system(esapi_out: PathBuf) {
9696
.expect("Error converting OsString to String.");
9797

9898
bindgen::Builder::default()
99-
.clang_arg(format!("-I{}/tss2/", tss2_esys_include_path))
100-
.clang_arg(format!("-I{}/tss2/", tss2_tctildr_include_path))
101-
.clang_arg(format!("-I{}/tss2/", tss2_mu_include_path))
99+
.clang_arg(format!("-I{tss2_esys_include_path}/tss2/"))
100+
.clang_arg(format!("-I{tss2_tctildr_include_path}/tss2/"))
101+
.clang_arg(format!("-I{tss2_mu_include_path}/tss2/"))
102102
.rustfmt_bindings(true)
103-
.header(format!("{}/tss2/tss2_esys.h", tss2_esys_include_path))
104-
.header(format!("{}/tss2/tss2_tctildr.h", tss2_tctildr_include_path))
105-
.header(format!("{}/tss2/tss2_mu.h", tss2_mu_include_path))
103+
.header(format!("{tss2_esys_include_path}/tss2/tss2_esys.h"))
104+
.header(format!("{tss2_tctildr_include_path}/tss2/tss2_tctildr.h"))
105+
.header(format!("{tss2_mu_include_path}/tss2/tss2_mu.h"))
106106
// See this issue: https://github.com/parallaxsecond/rust-cryptoki/issues/12
107107
.blocklist_type("max_align_t")
108108
.generate_comments(false)

tss-esapi/src/context/tpm_commands/enhanced_authorization_ea_commands.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ impl Context {
430430
self.optional_session_3(),
431431
&object_name.into(),
432432
&new_parent_name.into(),
433-
if include_object { 1 } else { 0 },
433+
u8::from(include_object),
434434
)
435435
};
436436
let ret = Error::from_tss_rc(ret);

0 commit comments

Comments
 (0)