1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-26 18:37:41 +02:00

apply imports_granularity fmt rule

This commit is contained in:
Rob Ede
2022-09-11 21:55:40 +01:00
parent 339b81e843
commit 1561bda822
17 changed files with 59 additions and 56 deletions

View File

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

View File

@ -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;