Skip to content

Commit 8c93948

Browse files
committed
Fix tests
1 parent f2b5cc4 commit 8c93948

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

src/error.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -559,10 +559,8 @@ impl<'a> Iterator for Chain<'a> {
559559

560560
#[cfg(test)]
561561
mod assertions {
562-
use super::*;
563-
564562
#[cfg(not(feature = "error-send"))]
565-
static_assertions::assert_not_impl_any!(Error: Send, Sync);
563+
static_assertions::assert_not_impl_any!(super::Error: Send, Sync);
566564
#[cfg(feature = "send")]
567-
static_assertions::assert_impl_all!(Error: Send, Sync);
565+
static_assertions::assert_impl_all!(super::Error: Send, Sync);
568566
}

tests/chunk.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#[cfg(not(target_os = "wasi"))]
12
use std::{fs, io};
23

34
use mlua::{Chunk, ChunkMode, Lua, Result};
@@ -85,7 +86,7 @@ fn test_chunk_macro() -> Result<()> {
8586
data.raw_set("num", 1)?;
8687

8788
let ud = mlua::AnyUserData::wrap("hello");
88-
let f = mlua::Function::wrap(|| Ok(()));
89+
let f = mlua::Function::wrap(|| Ok::<_, mlua::Error>(()));
8990

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

0 commit comments

Comments
 (0)