mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-26 10:27:42 +02:00
apply imports_granularity fmt rule
This commit is contained in:
@ -146,9 +146,11 @@ mod session;
|
||||
mod session_ext;
|
||||
pub mod storage;
|
||||
|
||||
pub use self::middleware::SessionMiddleware;
|
||||
pub use self::session::{Session, SessionGetError, SessionInsertError, SessionStatus};
|
||||
pub use self::session_ext::SessionExt;
|
||||
pub use self::{
|
||||
middleware::SessionMiddleware,
|
||||
session::{Session, SessionGetError, SessionInsertError, SessionStatus},
|
||||
session_ext::SessionExt,
|
||||
};
|
||||
|
||||
#[cfg(test)]
|
||||
pub mod test_helpers {
|
||||
@ -207,9 +209,11 @@ pub mod test_helpers {
|
||||
use serde::{Deserialize, Serialize};
|
||||
use serde_json::json;
|
||||
|
||||
use crate::config::{CookieContentSecurity, PersistentSession, TtlExtensionPolicy};
|
||||
use crate::{
|
||||
storage::SessionStore, test_helpers::key, Session, SessionExt, SessionMiddleware,
|
||||
config::{CookieContentSecurity, PersistentSession, TtlExtensionPolicy},
|
||||
storage::SessionStore,
|
||||
test_helpers::key,
|
||||
Session, SessionExt, SessionMiddleware,
|
||||
};
|
||||
|
||||
pub(super) async fn basic_workflow<F, Store>(
|
||||
|
@ -3,8 +3,10 @@
|
||||
mod interface;
|
||||
mod session_key;
|
||||
|
||||
pub use self::interface::{LoadError, SaveError, SessionStore, UpdateError};
|
||||
pub use self::session_key::SessionKey;
|
||||
pub use self::{
|
||||
interface::{LoadError, SaveError, SessionStore, UpdateError},
|
||||
session_key::SessionKey,
|
||||
};
|
||||
|
||||
#[cfg(feature = "cookie-session")]
|
||||
mod cookie;
|
||||
|
@ -1,13 +1,14 @@
|
||||
use std::collections::HashMap;
|
||||
use std::convert::TryInto;
|
||||
use std::{collections::HashMap, convert::TryInto};
|
||||
|
||||
use actix_session::storage::{LoadError, SaveError, SessionKey, SessionStore, UpdateError};
|
||||
use actix_session::{Session, SessionMiddleware};
|
||||
use actix_web::body::MessageBody;
|
||||
use actix_web::http::StatusCode;
|
||||
use actix_session::{
|
||||
storage::{LoadError, SaveError, SessionKey, SessionStore, UpdateError},
|
||||
Session, SessionMiddleware,
|
||||
};
|
||||
use actix_web::{
|
||||
body::MessageBody,
|
||||
cookie::{time::Duration, Key},
|
||||
dev::Service,
|
||||
http::StatusCode,
|
||||
test, web, App, Responder,
|
||||
};
|
||||
use anyhow::Error;
|
||||
|
Reference in New Issue
Block a user