mirror of
https://github.com/Dummi26/mers.git
synced 2025-12-28 17:16:31 +01:00
functions no longer modify state, funcrefs exist
you can use &func as a function, too. this allows the function to mutate its inner state.
This commit is contained in:
@@ -11,7 +11,7 @@ pub fn to_mers_func(
|
||||
run: impl Fn(Data) -> Result<Data, CheckError> + Send + Sync + 'static,
|
||||
) -> data::function::Function {
|
||||
data::function::Function {
|
||||
info: Arc::new(Info::neverused()),
|
||||
info: Info::neverused(),
|
||||
info_check: Arc::new(Mutex::new(Info::neverused())),
|
||||
out: Arc::new(move |a, _| out(a)),
|
||||
run: Arc::new(move |a, _| run(a)),
|
||||
|
||||
Reference in New Issue
Block a user