Skip to content

Commit 9b9dc1d

Browse files
committed
fix build
1 parent 0d5a41d commit 9b9dc1d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/bee/lua_windows.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ fn bee_windows_a2u(_: &Lua, text: String) -> LuaResult<String> {
5656
}
5757

5858
fn set_stdio_to_binary() -> io::Result<()> {
59-
if cfg!(windows) {
59+
#[cfg(windows)]
60+
{
6061
windows::set_stdio_to_binary()?;
6162
}
6263
Ok(())

src/bee/socket/lua_socket.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ impl LuaSocket {
8888
}
8989
#[cfg(unix)]
9090
SocketType::Unix => {
91-
let listener = UnixListener::bind(addr).await?;
91+
let listener = UnixListener::bind(addr)?;
9292
let stream = SocketStream::UnixListener(listener);
9393
SOCKET_POOL
9494
.lock()

0 commit comments

Comments
 (0)