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:
Lorenz Leutgeb 2025-08-22 01:28:03 +02:00
parent e40fe86ff8
commit 31a7d3bd3f
No known key found for this signature in database
1 changed files with 4 additions and 0 deletions

View File

@ -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>