Skip to content

Commit

Permalink
Fix warning when compiling chunk tests
Browse files Browse the repository at this point in the history
  • Loading branch information
khvzak committed Jul 28, 2023
1 parent a85e757 commit 3a096ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/chunk.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::fs;
use std::io;

use mlua::{AnyUserData, Function, Lua, Result};
use mlua::{Lua, Result};

#[test]
fn test_chunk_path() -> Result<()> {
Expand Down Expand Up @@ -36,8 +36,8 @@ fn test_chunk_macro() -> Result<()> {
let data = lua.create_table()?;
data.raw_set("num", 1)?;

let ud = AnyUserData::wrap("hello");
let f = Function::wrap(|_lua, ()| Ok(()));
let ud = mlua::AnyUserData::wrap("hello");
let f = mlua::Function::wrap(|_lua, ()| Ok(()));

lua.globals().set("g", 123)?;

Expand Down

0 comments on commit 3a096ae

Please sign in to comment.