🎨 Retoques al importar fmt para usar Display

This commit is contained in:
Manuel Cillero 2025-08-21 09:36:25 +02:00
parent 97581659bf
commit 8de3f0b7a5
2 changed files with 4 additions and 5 deletions

View file

@ -6,7 +6,7 @@ use crate::service::{HttpRequest, HttpResponse};
use super::Page;
use std::fmt;
use std::fmt::{self, Display};
#[derive(Debug)]
pub enum ErrorPage {
@ -19,7 +19,7 @@ pub enum ErrorPage {
Timeout(HttpRequest),
}
impl fmt::Display for ErrorPage {
impl Display for ErrorPage {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
// Error 304.