diff --git a/src/dispatching/dialogue/storage/mod.rs b/src/dispatching/dialogue/storage/mod.rs index bb8463cb..600cf988 100644 --- a/src/dispatching/dialogue/storage/mod.rs +++ b/src/dispatching/dialogue/storage/mod.rs @@ -24,6 +24,10 @@ use std::sync::Arc; #[cfg(feature = "sqlite-storage")] pub use sqlite_storage::{SqliteStorage, SqliteStorageError}; +/// A storage with an erased error type. +pub type ErasedStorage = + dyn Storage> + Send + Sync; + /// A storage of dialogues. /// /// You can implement this trait for a structure that communicates with a DB and @@ -125,9 +129,6 @@ where } } -pub type ErasedStorage = - dyn Storage> + Send + Sync; - #[cfg(test)] mod tests { use super::*;