From b953bdb3491396f9633806a296a7b7dc939e9856 Mon Sep 17 00:00:00 2001 From: Claudio Cicconetti Date: Tue, 17 Dec 2024 14:27:40 +0100 Subject: [PATCH] Fix clippy warnings --- edgeless_orc/src/proxy_redis.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/edgeless_orc/src/proxy_redis.rs b/edgeless_orc/src/proxy_redis.rs index 920acad..2c955c0 100644 --- a/edgeless_orc/src/proxy_redis.rs +++ b/edgeless_orc/src/proxy_redis.rs @@ -257,7 +257,7 @@ impl super::proxy::Proxy for ProxyRedis { let timestamp = ProxyRedis::timestamp_now(); // update the timestamp when the nodes were updated - let _ = redis::Cmd::set(format!("node:capabilities:last_update"), ×tamp).exec(&mut self.connection); + let _ = redis::Cmd::set(String::from("node:capabilities:last_update"), ×tamp).exec(&mut self.connection); // serialize the nodes' capabilities and health status to Redis let mut new_node_capabilities = std::collections::HashMap::new(); @@ -298,7 +298,7 @@ impl super::proxy::Proxy for ProxyRedis { fn update_resource_providers(&mut self, resource_providers: &std::collections::HashMap) { // update the timestamp when the resource providers were updated - let _ = redis::Cmd::set(format!("provider:last_update"), ProxyRedis::timestamp_now()).exec(&mut self.connection); + let _ = redis::Cmd::set(String::from("provider:last_update"), ProxyRedis::timestamp_now()).exec(&mut self.connection); // serialize the resource providers for (provider_id, resource_provider) in resource_providers { @@ -322,7 +322,7 @@ impl super::proxy::Proxy for ProxyRedis { let timestamp = ProxyRedis::timestamp_now(); // update the timestamp when the active instances were updated - let _ = redis::Cmd::set(format!("instance:last_update"), ×tamp).exec(&mut self.connection); + let _ = redis::Cmd::set(String::from("instance:last_update"), ×tamp).exec(&mut self.connection); // serialize the active instances let mut new_mapping_to_instance_id = std::collections::HashMap::new(); @@ -369,7 +369,7 @@ impl super::proxy::Proxy for ProxyRedis { fn update_dependency_graph(&mut self, dependency_graph: &std::collections::HashMap>) { // update the timestamp when the dependency graph was updated - let _ = redis::Cmd::set(format!("dependency:last_update"), ProxyRedis::timestamp_now()).exec(&mut self.connection); + let _ = redis::Cmd::set(String::from("dependency:last_update"), ProxyRedis::timestamp_now()).exec(&mut self.connection); // serialize the dependency graph for (lid, dependencies) in dependency_graph {