From 6f72a3219564add258d6394b835f5fce33d223ab Mon Sep 17 00:00:00 2001 From: Kristian Mika Date: Sat, 24 Jun 2023 22:02:20 +0200 Subject: [PATCH] style: remove useless format! call --- backend/common/src/server_repo/postgres_server_repo/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/common/src/server_repo/postgres_server_repo/mod.rs b/backend/common/src/server_repo/postgres_server_repo/mod.rs index e9df384..cb53fcd 100644 --- a/backend/common/src/server_repo/postgres_server_repo/mod.rs +++ b/backend/common/src/server_repo/postgres_server_repo/mod.rs @@ -36,7 +36,7 @@ impl ServerRepo for PostgresServerRepo { .load::(&mut self.get_connection()?) .into_report() .change_context(DbError::FetchError) - .attach_printable(format!("Couldn't fetch the last measurement"))?; + .attach_printable("Couldn't fetch the last measurement")?; Ok(result.first().cloned()) }