From 600fb3fc3c2e14482cd0866fe986067185a1d01b Mon Sep 17 00:00:00 2001 From: Rob Wagner Date: Fri, 18 Oct 2024 20:38:50 -0400 Subject: [PATCH] Remove unused error code --- src/guard.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/guard.rs b/src/guard.rs index 79899e6..86ca938 100644 --- a/src/guard.rs +++ b/src/guard.rs @@ -1,7 +1,6 @@ //! Request guard for protecting a router against non-htmx requests. use std::{ - fmt, future::Future, pin::Pin, task::{Context, Poll}, @@ -123,14 +122,3 @@ mod private { } } } - -#[derive(Debug, Default)] -struct HxRequestGuardError; - -impl fmt::Display for HxRequestGuardError { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.write_str("HxRequestGuardError") - } -} - -impl std::error::Error for HxRequestGuardError {}