From be143a3f6ecb0d72d8ca10e71187bff97ed4faf1 Mon Sep 17 00:00:00 2001 From: Hirrolot Date: Mon, 21 Mar 2022 20:18:33 +0600 Subject: [PATCH] Move `ErasedStorage` upper --- src/dispatching/dialogue/storage/mod.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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::*;