Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mssun committed Jun 4, 2021
1 parent 7adac2c commit adfa502
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/authentication/ta/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion examples/diffie_hellman/ta/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion examples/random/host/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<()> {
Expand Down
2 changes: 1 addition & 1 deletion examples/secure_storage/host/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion examples/serde/host/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};

Expand Down

0 comments on commit adfa502

Please sign in to comment.