You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@teaclave.apache.org by ms...@apache.org on 2021/06/04 00:27:26 UTC
[incubator-teaclave-trustzone-sdk] branch master updated: Fix
warnings
This is an automated email from the ASF dual-hosted git repository.
mssun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-teaclave-trustzone-sdk.git
The following commit(s) were added to refs/heads/master by this push:
new adfa502 Fix warnings
adfa502 is described below
commit adfa5029cd4f762a539ba892f2b9c711142ba7ab
Author: Mingshen Sun <bo...@mssun.me>
AuthorDate: Thu Jun 3 17:27:15 2021 -0700
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 0f29b28..3e8c529 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 f026733..7582ed3 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 ba9462d..3e1c703 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 59088bd..9491dc2 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 87e50e1..3b8502a 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};
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@teaclave.apache.org
For additional commands, e-mail: commits-help@teaclave.apache.org