refactor: remove unused Forge Deref implementation
All checks were successful
Rust / build (push) Successful in 1m14s
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 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)] #[cfg(test)]
pub mod tests; pub mod tests;