Reorder code

This commit is contained in:
Alex Kotov 2021-03-06 07:17:23 +05:00
parent 981daab33c
commit 4c8b0b01ef
1 changed files with 8 additions and 8 deletions

View File

@ -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() }