From f918394703f84b8fe85df8b090de033bdb767ff1 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Fri, 28 Jun 2024 20:13:46 +0100 Subject: [PATCH] refactor: remove unused Forge Deref implementation --- crates/forge/src/lib.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/crates/forge/src/lib.rs b/crates/forge/src/lib.rs index 1e85a58..c6ac8c6 100644 --- a/crates/forge/src/lib.rs +++ b/crates/forge/src/lib.rs @@ -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;