From 0efd829b1e908fd8581207698e794e9dc81954ca Mon Sep 17 00:00:00 2001 From: Preston Evans Date: Fri, 17 Nov 2023 17:17:48 -0600 Subject: [PATCH] Fix no_std --- .../src/runtime/capabilities.rs | 4 ++-- .../src/storage/scratchpad.rs | 23 ------------------- 2 files changed, 2 insertions(+), 25 deletions(-) diff --git a/module-system/sov-modules-core/src/runtime/capabilities.rs b/module-system/sov-modules-core/src/runtime/capabilities.rs index d990ac5db7..12bd89f57a 100644 --- a/module-system/sov-modules-core/src/runtime/capabilities.rs +++ b/module-system/sov-modules-core/src/runtime/capabilities.rs @@ -34,7 +34,7 @@ pub trait BlobSelector { &self, current_blobs: I, working_set: &mut WorkingSet, - ) -> anyhow::Result>> + ) -> anyhow::Result>> where I: IntoIterator; } @@ -135,7 +135,7 @@ pub mod mocks { &self, current_blobs: I, _working_set: &mut crate::WorkingSet, - ) -> anyhow::Result>> + ) -> anyhow::Result>> where I: IntoIterator, { diff --git a/module-system/sov-modules-core/src/storage/scratchpad.rs b/module-system/sov-modules-core/src/storage/scratchpad.rs index 47aa8d968f..0e9ab3674f 100644 --- a/module-system/sov-modules-core/src/storage/scratchpad.rs +++ b/module-system/sov-modules-core/src/storage/scratchpad.rs @@ -503,29 +503,6 @@ pub mod kernel_state { pub(super) virtual_slot_num: u64, } - // /// A sealed trait allowing kernels to manufacture [`KernelWorkingSet``]s - // #[allow(private_bounds)] - // pub trait KernelWorkingSetBuilder: Sealed { - // /// Create a new working set from the kernel - // fn get_working_set<'a>( - // &self, - // ws: &'a mut WorkingSet, - // true_slot_num: u64, - // virtual_slot_num: u64, - // ) -> KernelWorkingSet<'a, C> { - // KernelWorkingSet { - // ws, - // true_slot_num, - // virtual_slot_num, - // } - // } - // } - - // trait Sealed {} - // impl, C: Context, Da: DaSpec> Sealed for T {} - - // impl, C: Context, Da: DaSpec> KernelWorkingSetBuilder for T {} - impl<'a, C: Context> KernelWorkingSet<'a, C> { /// Build a new kernel working set from the associated kernel pub fn from_kernel, Da: DaSpec>(