mirror of
https://github.com/matter-labs/teepot.git
synced 2025-07-21 15:13:56 +02:00
chore(deps): update to rust version 1.78
and fix the clippy warnings Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
This commit is contained in:
parent
afceacd0d4
commit
a9bb266668
7 changed files with 15 additions and 15 deletions
|
@ -58,7 +58,7 @@ pub async fn post_command(
|
|||
hasher.update(item.commands.as_bytes());
|
||||
let hash = hasher.finalize();
|
||||
let digest = hex::encode(hash);
|
||||
admin_state.last_digest = digest.clone();
|
||||
admin_state.last_digest.clone_from(&digest);
|
||||
conn.store_secret(admin_state, "state").await?;
|
||||
|
||||
let mut responds = VaultCommandsResponse {
|
||||
|
|
|
@ -82,7 +82,7 @@ pub async fn post_sign(
|
|||
hasher.update(item.sign_request_data.as_bytes());
|
||||
let hash = hasher.finalize();
|
||||
let digest = hex::encode(hash);
|
||||
admin_state.last_digest = digest.clone();
|
||||
admin_state.last_digest.clone_from(&digest);
|
||||
conn.store_secret(admin_state, "state").await?;
|
||||
|
||||
// Sign SGX enclave
|
||||
|
|
|
@ -291,6 +291,7 @@ async fn send_sig_request(args: SignTeeArgs) -> Result<()> {
|
|||
// open out_file early to fail fast if it is not writable
|
||||
let mut out_file = OpenOptions::new()
|
||||
.create(true)
|
||||
.truncate(true)
|
||||
.write(true)
|
||||
.open(&args.out)?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue