Remove unused error code

This commit is contained in:
Rob Wagner 2024-10-18 20:38:50 -04:00
parent d06b84c98c
commit 600fb3fc3c
No known key found for this signature in database
GPG key ID: 53CCB4497B15CF61

View file

@ -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 {}