Skip to content

Commit

Permalink
Make store's Debug implementation featureless
Browse files Browse the repository at this point in the history
  • Loading branch information
ark0f committed Sep 29, 2024
1 parent 7fe3b7e commit 30c7e7c
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions sandbox/sandbox/src/embedded_executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,10 @@ pub struct Store<T> {

impl<T: fmt::Debug> fmt::Debug for Store<T> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
#[cfg(feature = "std")]
{
f.debug_struct("Store")
.field("inner", &self.inner)
.field("memories", &self.memories.len())
.finish()
}

#[cfg(not(feature = "std"))]
{
f.debug_tuple("Store").field("<wasm:stripped>").finish()
}
f.debug_struct("Store")
.field("inner", &self.inner)
.field("memories", &self.memories.len())
.finish()
}
}

Expand Down

0 comments on commit 30c7e7c

Please sign in to comment.