mirror of
https://github.com/robertwayne/axum-htmx
synced 2024-12-01 15:34:32 +01:00
Remove unused error code
This commit is contained in:
parent
d06b84c98c
commit
600fb3fc3c
1 changed files with 0 additions and 12 deletions
12
src/guard.rs
12
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 {}
|
||||
|
|
Loading…
Reference in a new issue