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:
Harald Hoyer 2024-06-10 13:08:09 +02:00
parent afceacd0d4
commit a9bb266668
Signed by: harald
GPG key ID: F519A1143B3FBE32
7 changed files with 15 additions and 15 deletions

View file

@ -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 {

View file

@ -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