mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 10:05:41 +00:00
feat: migrate get_email to use db_*
This commit is contained in:
@@ -310,6 +310,15 @@ impl From<ServiceError> for PageError {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(tarpaulin_include))]
|
||||
impl From<DBError> for PageError {
|
||||
#[cfg(not(tarpaulin_include))]
|
||||
fn from(e: DBError) -> Self {
|
||||
let se: ServiceError = e.into();
|
||||
se.into()
|
||||
}
|
||||
}
|
||||
|
||||
impl ResponseError for PageError {
|
||||
fn error_response(&self) -> HttpResponse {
|
||||
use crate::PAGES;
|
||||
|
||||
Reference in New Issue
Block a user