Skip to content

Commit

Permalink
Fix no_std
Browse files Browse the repository at this point in the history
  • Loading branch information
preston-evans98 committed Nov 17, 2023
1 parent 8dce7d4 commit 0efd829
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 25 deletions.
4 changes: 2 additions & 2 deletions module-system/sov-modules-core/src/runtime/capabilities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub trait BlobSelector<Da: DaSpec> {
&self,
current_blobs: I,
working_set: &mut WorkingSet<Self::Context>,
) -> anyhow::Result<Vec<BlobRefOrOwned<'a, Da::BlobTransaction>>>
) -> anyhow::Result<alloc::vec::Vec<BlobRefOrOwned<'a, Da::BlobTransaction>>>
where
I: IntoIterator<Item = &'a mut Da::BlobTransaction>;
}
Expand Down Expand Up @@ -135,7 +135,7 @@ pub mod mocks {
&self,
current_blobs: I,
_working_set: &mut crate::WorkingSet<Self::Context>,
) -> anyhow::Result<Vec<super::BlobRefOrOwned<'a, Da::BlobTransaction>>>
) -> anyhow::Result<alloc::vec::Vec<super::BlobRefOrOwned<'a, Da::BlobTransaction>>>
where
I: IntoIterator<Item = &'a mut Da::BlobTransaction>,
{
Expand Down
23 changes: 0 additions & 23 deletions module-system/sov-modules-core/src/storage/scratchpad.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<C: Context, Da>: Sealed<C, Da> {
// /// Create a new working set from the kernel
// fn get_working_set<'a>(
// &self,
// ws: &'a mut WorkingSet<C>,
// true_slot_num: u64,
// virtual_slot_num: u64,
// ) -> KernelWorkingSet<'a, C> {
// KernelWorkingSet {
// ws,
// true_slot_num,
// virtual_slot_num,
// }
// }
// }

// trait Sealed<C: Context, Da> {}
// impl<T: Kernel<C, Da>, C: Context, Da: DaSpec> Sealed<C, Da> for T {}

// impl<T: Kernel<C, Da>, C: Context, Da: DaSpec> KernelWorkingSetBuilder<C, Da> for T {}

impl<'a, C: Context> KernelWorkingSet<'a, C> {
/// Build a new kernel working set from the associated kernel
pub fn from_kernel<K: Kernel<C, Da>, Da: DaSpec>(
Expand Down

0 comments on commit 0efd829

Please sign in to comment.