Skip to content

Commit

Permalink
Make public Rust API be same as public FFI API
Browse files Browse the repository at this point in the history
  • Loading branch information
hulthe committed May 14, 2024
1 parent 776dac9 commit 975ee0a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/maybenot-ffi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ use maybenot::{
};

mod error;
pub use error::*;
use error::Error;
pub use error::MaybenotResult;

mod ffi;
pub use ffi::*;
Expand Down Expand Up @@ -99,7 +100,7 @@ pub enum MaybenotAction {
}

impl MaybenotFramework {
pub fn start(
fn start(
machines_str: &str,
max_padding_bytes: f64,
max_blocking_bytes: f64,
Expand All @@ -126,7 +127,7 @@ impl MaybenotFramework {
Ok(MaybenotFramework { framework })
}

pub fn on_event(
fn on_event(
&mut self,
event: MaybenotEvent,
actions: &mut [MaybeUninit<MaybenotAction>],
Expand Down

0 comments on commit 975ee0a

Please sign in to comment.