chore: add alias for old error name

This commit is contained in:
Dmitriy Pleshevskiy 2021-10-22 00:04:52 +03:00
parent 6176c166c1
commit 5a978b1069

View file

@ -13,6 +13,10 @@ use r2d2_sqlite::rusqlite::Error as RusqliteError;
/// Use this type in your repository or in something else that implements methods for your persistence.
pub type Result<T> = std::result::Result<T, Error>;
#[deprecated]
#[allow(clippy::module_name_repetitions)]
pub use Error as PersistenceError;
/// All supported kinds of persistence error
#[derive(Debug)]
pub enum Error {