commit 6220a2685d2bed7f9ba1ae0a5c81534db0fb6b47 parent 6a5cc7e7251db3ccd0be39355336c5601345d14c Author: Jackson G. Kaindume <kaindume@kwatafana.org> Date: Wed, 31 Aug 2022 19:47:06 +0200 [phora] remove unneeded file Diffstat:
D | phora/src/database/#error.rs# | | | 22 | ---------------------- |
1 file changed, 0 insertions(+), 22 deletions(-)
diff --git a/phora/src/database/#error.rs# b/phora/src/database/#error.rs# @@ -1,22 +0,0 @@ -use std::fmt; - -#[derive(Debug)] -pub enum DatabaseError { - ConnectionError, -} - -impl std::error::Error for DatabaseError {} - -impl fmt::Display for DatabaseError { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - match self { - DatabaseError::ConnectionError => write!(f, "Database connection error"), - } - } -} - -impl From<rusqlite::> for CrawlError { - fn from(_: web3::error::Error) -> Self { - CrawlError::RPCConnection - } -}