mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-15 15:50:38 +08:00
fetch: add Handle::into_inner
Adds an `into_inner` method to deconstruct the `Handle` back into the underlying repository type.
This commit is contained in:
@@ -46,6 +46,10 @@ impl<R, S> Handle<R, S> {
|
||||
pub fn allowed(&self) -> Allowed {
|
||||
self.allowed.clone()
|
||||
}
|
||||
|
||||
pub fn into_inner(self) -> R {
|
||||
self.repo
|
||||
}
|
||||
}
|
||||
|
||||
impl<R, S> Handle<R, S>
|
||||
|
||||
Reference in New Issue
Block a user