From 31a7d3bd3fa3803fd4b37435f091cd39fc2dce4a Mon Sep 17 00:00:00 2001 From: Lorenz Leutgeb Date: Fri, 22 Aug 2025 01:28:03 +0200 Subject: [PATCH] fetch: add `Handle::into_inner` Adds an `into_inner` method to deconstruct the `Handle` back into the underlying repository type. --- crates/radicle-fetch/src/handle.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/radicle-fetch/src/handle.rs b/crates/radicle-fetch/src/handle.rs index a252fc75..5a51e69b 100644 --- a/crates/radicle-fetch/src/handle.rs +++ b/crates/radicle-fetch/src/handle.rs @@ -46,6 +46,10 @@ impl Handle { pub fn allowed(&self) -> Allowed { self.allowed.clone() } + + pub fn into_inner(self) -> R { + self.repo + } } impl Handle