#[derive(Debug, derive_more::Display)] pub enum Error { UnableToOpenRepo(String), NoFetchRemoteFound, Connect(String), Fetch(String), Lock, } impl std::error::Error for Error {} mod gix_error { #![cfg(not(tarpaulin_include))] // third-party library errors use super::Error; impl From for Error { fn from(gix_error: gix::remote::connect::Error) -> Self { Self::Connect(gix_error.to_string()) } } }