Skip to content

Commit

Permalink
mocker: make ci happy
Browse files Browse the repository at this point in the history
  • Loading branch information
bastibl committed Nov 15, 2024
1 parent 1204ef1 commit b7679db
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion examples/m17/src/moving_average.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use futuresdr::anyhow::Result;
use futuresdr::macros::async_trait;
use futuresdr::runtime::Block;
use futuresdr::runtime::BlockMeta;
use futuresdr::runtime::BlockMetaBuilder;
use futuresdr::runtime::Kernel;
Expand Down
3 changes: 0 additions & 3 deletions src/runtime/mocker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,11 @@ impl<K: Kernel + 'static> Mocker<K> {
}

/// Run the block wrapped by the mocker
#[cfg(not(target_arch = "wasm32"))]
pub fn run(&mut self) {
crate::async_io::block_on(self.run_async());
}

/// Init the block wrapped by the mocker
#[cfg(not(target_arch = "wasm32"))]
pub fn init(&mut self) {
crate::async_io::block_on(async {
self.block
Expand All @@ -165,7 +163,6 @@ impl<K: Kernel + 'static> Mocker<K> {
}

/// Deinit the block wrapped by the mocker
#[cfg(not(target_arch = "wasm32"))]
pub fn deinit(&mut self) {
crate::async_io::block_on(async {
self.block
Expand Down
2 changes: 2 additions & 0 deletions src/runtime/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ mod logging;

mod flowgraph;
pub mod message_io;
#[cfg(not(target_arch = "wasm32"))]
mod mocker;
#[allow(clippy::module_inception)]
mod runtime;
Expand All @@ -52,6 +53,7 @@ pub use message_io::MessageInput;
pub use message_io::MessageIo;
pub use message_io::MessageIoBuilder;
pub use message_io::MessageOutput;
#[cfg(not(target_arch = "wasm32"))]
pub use mocker::Mocker;
pub use runtime::Runtime;
pub use runtime::RuntimeHandle;
Expand Down

0 comments on commit b7679db

Please sign in to comment.