From 70a16f8fa253ee4f83d736f59b7f8a0abb527be2 Mon Sep 17 00:00:00 2001 From: Jose Quintana Date: Fri, 21 Jan 2022 23:25:17 +0100 Subject: [PATCH] fix: `to_string` applied to a type that implements `Display` --- src/error_page.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/error_page.rs b/src/error_page.rs index 09f3594..7a90487 100644 --- a/src/error_page.rs +++ b/src/error_page.rs @@ -71,7 +71,7 @@ impl AfterMiddleware for ErrorPage { if content.is_empty() { content = format!( "{}

{}

", - stat.to_string(), stat.to_string()); + stat, stat); } Response::with((content_type, stat, content)) } @@ -88,7 +88,7 @@ impl AfterMiddleware for ErrorPage { let content = if self.page50x.is_empty() { format!( "{}

{}

", - stat.to_string(), stat.to_string() + stat, stat ) } else { self.page50x.clone() -- libgit2 1.7.2