From 1b1174d1d021d0959b04a6a8fe396436985cd365 Mon Sep 17 00:00:00 2001 From: Jose Quintana Date: Mon, 27 Apr 2020 00:51:34 +0200 Subject: [PATCH] refactor: prefer const over static on default error page content --- src/error_page.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/error_page.rs b/src/error_page.rs index 1f43564..82f8608 100644 --- a/src/error_page.rs +++ b/src/error_page.rs @@ -5,9 +5,9 @@ use iron::AfterMiddleware; use std::fs; use std::path::Path; -static PAGE_404: &str = "

404

Content could not found

"; -static PAGE_50X: &str = - "

50x

Service is temporarily unavailable due an unexpected error

"; +const PAGE_404: &str = "

404

Content could not found

"; +const PAGE_50X: &str = + "

50x

SERVICE is temporarily unavailable due an unexpected error

"; /// Custom Error pages middleware for Iron pub struct ErrorPage { -- libgit2 1.7.2