Skip to content

Commit

Permalink
Clippy pass 1
Browse files Browse the repository at this point in the history
  • Loading branch information
emostov authored and petreeftime committed Mar 8, 2023
1 parent a1cd182 commit e748c0e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions nsm-lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,7 @@ pub extern "C" fn nsm_get_description(fd: i32, nsm_description: &mut NsmDescript
/// *Argument 2 (input)*: Size of the user data buffer.
/// *Returns*: The optional byte buffer.
unsafe fn get_byte_buf_from_user_data(data: *const u8, len: u32) -> Option<Vec<u8>> {
let data_vec = nsm_get_vec_from_raw(data, len);
data_vec
nsm_get_vec_from_raw(data, len)
}

/// NSM `GetAttestationDoc` operation for non-Rust callers.
Expand Down
2 changes: 1 addition & 1 deletion nsm-test/src/bin/nsm-check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ fn check_attestation(ctx: i32) {
ctx,
Some(dummy_data.clone()),
Some(dummy_data.clone()),
Some(dummy_data.clone()),
Some(dummy_data),
);
println!(
"Checked Request::Attestation with user data, nonce and public key ({} bytes each).",
Expand Down
2 changes: 1 addition & 1 deletion src/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ impl AttestationDoc {
certificate,
user_data,
nonce,
public_key: public_key,
public_key,
}
}

Expand Down

0 comments on commit e748c0e

Please sign in to comment.