From ee4c0a0275e515a7ca891a47bd31a9f466fee2b7 Mon Sep 17 00:00:00 2001 From: xmppftw Date: Wed, 7 Aug 2024 11:12:50 +0200 Subject: [PATCH] Use Display not Debug for error message --- src/web.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/web.rs b/src/web.rs index 1899ba0..9feeabe 100644 --- a/src/web.rs +++ b/src/web.rs @@ -31,9 +31,9 @@ use tokio::sync::mpsc::UnboundedSender; type HmacSha256 = Hmac; fn error_res(e: Error) -> Result>, Infallible> { - error!("error response: {:?}", e); + error!("error response: {e}"); - let text = format!("{:?}", e); + let text = format!("{}", e); let res = Response::builder() .status(e.status()) .body(Full::new(Bytes::from(text)))