Store more commit info in db

This commit is contained in:
Joscha 2023-08-06 10:45:27 +02:00
parent 0f3cf296f1
commit 0d3cd15b03
9 changed files with 82 additions and 43 deletions

View file

@ -8,6 +8,12 @@ use axum::{
/// Wrapper around [`anyhow::Error`] that implements additional type classes.
pub struct Error(pub anyhow::Error);
impl Error {
pub fn from_box(err: Box<dyn error::Error + Send + Sync + 'static>) -> Self {
Self(anyhow::anyhow!(err))
}
}
impl<E> From<E> for Error
where
E: error::Error + Send + Sync + 'static,