Skip to content

Commit

Permalink
feat: add into_inner() method to DefaultHost
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbinth committed Oct 10, 2023
1 parent fb47d83 commit 6d8cb96
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions processor/src/host/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ impl From<HostResponse> for Felt {
// DEFAULT HOST IMPLEMENTATION
// ================================================================================================

/// TODO: add comments
pub struct DefaultHost<A> {
adv_provider: A,
}
Expand All @@ -218,6 +219,10 @@ impl<A: AdviceProvider> DefaultHost<A> {
pub fn advice_provider_mut(&mut self) -> &mut A {
&mut self.adv_provider
}

pub fn into_inner(self) -> A {
self.adv_provider
}
}

impl<A: AdviceProvider> Host for DefaultHost<A> {
Expand Down

0 comments on commit 6d8cb96

Please sign in to comment.