diff options
author | Alex Orlenko <zxteam@protonmail.com> | 2022-02-14 18:41:18 +0000 |
---|---|---|
committer | Alex Orlenko <zxteam@protonmail.com> | 2022-03-20 20:30:18 +0000 |
commit | 6dc127f4eb500398ffd81edcb24d45353b0ff4cf (patch) | |
tree | 6bfe18ef5e0bfd1e6d553a22cfef5b7007d60ded /tests/async.rs | |
parent | d4f8dce597068477dd04fb652186d83f2e4b89ca (diff) | |
download | mlua-6dc127f4eb500398ffd81edcb24d45353b0ff4cf.zip |
Refactor ffi module
Initial Luau support work
Diffstat (limited to 'tests/async.rs')
-rw-r--r-- | tests/async.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/async.rs b/tests/async.rs index 77bc576..dead884 100644 --- a/tests/async.rs +++ b/tests/async.rs @@ -13,8 +13,8 @@ use futures_timer::Delay; use futures_util::stream::TryStreamExt; use mlua::{ - Error, ExternalError, Function, Lua, LuaOptions, MetaMethod, Result, StdLib, Table, TableExt, - Thread, ToLua, UserData, UserDataMethods, Value, + Error, ExternalError, Function, Lua, LuaOptions, Result, StdLib, Table, TableExt, Thread, + ToLua, UserData, UserDataMethods, Value, }; #[tokio::test] @@ -300,7 +300,7 @@ async fn test_async_userdata() -> Result<()> { }); #[cfg(not(feature = "lua51"))] - methods.add_async_meta_method(MetaMethod::Call, |_, data, ()| async move { + methods.add_async_meta_method(mlua::MetaMethod::Call, |_, data, ()| async move { let n = data.0.load(Ordering::Relaxed); Delay::new(Duration::from_millis(n)).await; Ok(format!("elapsed:{}ms", n)) |