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:
parent
e40fe86ff8
commit
31a7d3bd3f
|
|
@ -46,6 +46,10 @@ impl<R, S> Handle<R, S> {
|
||||||
pub fn allowed(&self) -> Allowed {
|
pub fn allowed(&self) -> Allowed {
|
||||||
self.allowed.clone()
|
self.allowed.clone()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn into_inner(self) -> R {
|
||||||
|
self.repo
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<R, S> Handle<R, S>
|
impl<R, S> Handle<R, S>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue