From d8da80821b1696c6872cb4bec09ea61c1a2f4eab Mon Sep 17 00:00:00 2001 From: Fintan Halpenny Date: Fri, 3 Feb 2023 13:43:30 +0000 Subject: [PATCH] Rust 1.67 Rust 1.67 was announced[0]. Update the necessary files for running 1.67 and fix the clippy suggestions for string interpolation. [0]: https://blog.rust-lang.org/2023/01/26/Rust-1.67.0.html Signed-off-by: Fintan Halpenny X-Clacks-Overhead: GNU Terry Pratchett --- radicle-httpd/src/api/axum_extra.rs | 4 ++-- radicle-httpd/src/lib.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/radicle-httpd/src/api/axum_extra.rs b/radicle-httpd/src/api/axum_extra.rs index 0e1b13869..79a23e137 100644 --- a/radicle-httpd/src/api/axum_extra.rs +++ b/radicle-httpd/src/api/axum_extra.rs @@ -39,7 +39,7 @@ where } _ => Json(Error { success: false, - error: format!("{}", rejection), + error: format!("{rejection}"), }), }; @@ -72,7 +72,7 @@ where }), _ => Json(Error { success: false, - error: format!("{}", rejection), + error: format!("{rejection}"), }), }; diff --git a/radicle-httpd/src/lib.rs b/radicle-httpd/src/lib.rs index fe5bd696f..4674b0112 100644 --- a/radicle-httpd/src/lib.rs +++ b/radicle-httpd/src/lib.rs @@ -254,7 +254,7 @@ async fn git_http_backend( Err(Error::Backend) } Err(err) => { - panic!("failed to wait for git-http-backend: {}", err); + panic!("failed to wait for git-http-backend: {err}"); } } }