refactor: remove unused Forge Deref implementation
This commit is contained in:
parent
e585b07f6b
commit
f460cd4b49
1 changed files with 0 additions and 12 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue