refactor: remove unused Forge Deref implementation

This commit is contained in:
Paul Campbell 2024-06-28 20:13:46 +01:00
parent e585b07f6b
commit f460cd4b49

View file

@ -27,18 +27,6 @@ impl Forge {
}
}
}
impl std::ops::Deref for Forge {
type Target = dyn git::ForgeLike;
fn deref(&self) -> &Self::Target {
match self {
Self::Mock => unreachable!(),
#[cfg(feature = "forgejo")]
Self::ForgeJo(env) => env,
#[cfg(feature = "github")]
Self::Github(env) => env,
}
}
}
#[cfg(test)]
pub mod tests;