From adfa5029cd4f762a539ba892f2b9c711142ba7ab Mon Sep 17 00:00:00 2001 From: Mingshen Sun Date: Thu, 3 Jun 2021 17:27:15 -0700 Subject: [PATCH] Fix warnings --- examples/authentication/ta/src/main.rs | 2 +- examples/diffie_hellman/ta/src/main.rs | 1 - examples/random/host/src/main.rs | 2 +- examples/secure_storage/host/src/main.rs | 2 +- examples/serde/host/src/main.rs | 2 +- 5 files changed, 4 insertions(+), 5 deletions(-) diff --git a/examples/authentication/ta/src/main.rs b/examples/authentication/ta/src/main.rs index 0f29b28f..3e8c5299 100644 --- a/examples/authentication/ta/src/main.rs +++ b/examples/authentication/ta/src/main.rs @@ -161,7 +161,7 @@ pub fn decrypt_final(digest: &mut AEOp, params: &mut Parameters) -> Result<()> { match digest.op.decrypt_final(&clear, &mut ciph, &tag) { Err(e) => Err(e), - Ok((_clear_len)) => { + Ok(_clear_len) => { p0.buffer().copy_from_slice(&clear); p1.buffer().copy_from_slice(&ciph); p2.buffer().copy_from_slice(&tag); diff --git a/examples/diffie_hellman/ta/src/main.rs b/examples/diffie_hellman/ta/src/main.rs index f0267336..7582ed3e 100644 --- a/examples/diffie_hellman/ta/src/main.rs +++ b/examples/diffie_hellman/ta/src/main.rs @@ -17,7 +17,6 @@ #![no_main] -use optee_utee::BigInt; use optee_utee::{ ta_close_session, ta_create, ta_destroy, ta_invoke_command, ta_open_session, trace_println, }; diff --git a/examples/random/host/src/main.rs b/examples/random/host/src/main.rs index ba9462df..3e1c7034 100644 --- a/examples/random/host/src/main.rs +++ b/examples/random/host/src/main.rs @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. -use optee_teec::{Context, Operation, ParamNone, ParamTmpRef, ParamType, Session, Uuid}; +use optee_teec::{Context, Operation, ParamNone, ParamTmpRef, Session, Uuid}; use proto::{Command, UUID}; fn random(session: &mut Session) -> optee_teec::Result<()> { diff --git a/examples/secure_storage/host/src/main.rs b/examples/secure_storage/host/src/main.rs index 59088bda..9491dc20 100644 --- a/examples/secure_storage/host/src/main.rs +++ b/examples/secure_storage/host/src/main.rs @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. -use optee_teec::{Context, ErrorKind, Operation, ParamNone, ParamTmpRef, ParamType, Session, Uuid}; +use optee_teec::{Context, ErrorKind, Operation, ParamNone, ParamTmpRef, Session, Uuid}; use proto::{Command, UUID}; use std::ffi::CString; diff --git a/examples/serde/host/src/main.rs b/examples/serde/host/src/main.rs index 87e50e1b..3b8502a1 100644 --- a/examples/serde/host/src/main.rs +++ b/examples/serde/host/src/main.rs @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. -use optee_teec::{Context, Operation, ParamNone, ParamTmpRef, ParamType, Session, Uuid}; +use optee_teec::{Context, Operation, ParamNone, ParamTmpRef, Session, Uuid}; use serde::Deserialize; use proto::{UUID, Command};