Reorder code
This commit is contained in:
parent
981daab33c
commit
4c8b0b01ef
16
src/lib.rs
16
src/lib.rs
|
@ -24,6 +24,14 @@ pub struct CsrfConfig {
|
|||
cookie_len: usize,
|
||||
}
|
||||
|
||||
pub struct Fairing {
|
||||
config: CsrfConfig,
|
||||
}
|
||||
|
||||
pub struct CsrfToken(String);
|
||||
|
||||
pub struct VerificationFailure;
|
||||
|
||||
impl Default for CsrfConfig {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
|
@ -35,14 +43,6 @@ impl Default for CsrfConfig {
|
|||
}
|
||||
}
|
||||
|
||||
pub struct Fairing {
|
||||
config: CsrfConfig,
|
||||
}
|
||||
|
||||
pub struct CsrfToken(String);
|
||||
|
||||
pub struct VerificationFailure;
|
||||
|
||||
impl Fairing {
|
||||
pub fn new() -> Self {
|
||||
Self { config: Default::default() }
|
||||
|
|
Loading…
Reference in New Issue