refactor: remove unused Forge Deref implementation
All checks were successful
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful

This commit is contained in:
Paul Campbell 2024-06-28 20:13:46 +01:00
parent 3b7c63b169
commit f918394703

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;