diff --git a/crates/luajit/src/error.rs b/crates/luajit/src/error.rs index fd2c30d6..bc4692ba 100644 --- a/crates/luajit/src/error.rs +++ b/crates/luajit/src/error.rs @@ -1,4 +1,4 @@ -use std::ffi::c_int; +use core::ffi::c_int; use thiserror::Error as ThisError; diff --git a/crates/luajit/src/ffi.rs b/crates/luajit/src/ffi.rs index af3c147a..9f1015d8 100644 --- a/crates/luajit/src/ffi.rs +++ b/crates/luajit/src/ffi.rs @@ -1,7 +1,7 @@ #![allow(non_snake_case)] -use std::ffi::{c_char, c_double, c_int, c_void}; -use std::marker::{PhantomData, PhantomPinned}; +use core::ffi::{c_char, c_double, c_int, c_void}; +use core::marker::{PhantomData, PhantomPinned}; #[repr(C)] pub struct State { diff --git a/crates/luajit/src/function.rs b/crates/luajit/src/function.rs index 408b4616..4f0bf4be 100644 --- a/crates/luajit/src/function.rs +++ b/crates/luajit/src/function.rs @@ -1,7 +1,7 @@ -use std::error::Error; -use std::ffi::{c_int, CStr}; -use std::mem; -use std::ptr; +use core::error::Error; +use core::ffi::{c_int, CStr}; +use core::mem; +use core::ptr; use crate::ffi::{self, State}; use crate::{utils, IntoResult, Poppable, Pushable}; diff --git a/crates/luajit/src/macros.rs b/crates/luajit/src/macros.rs index b6a9e1f1..bb87b3c4 100644 --- a/crates/luajit/src/macros.rs +++ b/crates/luajit/src/macros.rs @@ -1,4 +1,4 @@ -use std::ffi::c_char; +use core::ffi::c_char; use crate::ffi::*; diff --git a/crates/luajit/src/poppable.rs b/crates/luajit/src/poppable.rs index cdb895db..e3f72de1 100644 --- a/crates/luajit/src/poppable.rs +++ b/crates/luajit/src/poppable.rs @@ -1,5 +1,5 @@ +use core::hash::Hash; use std::collections::HashMap; -use std::hash::Hash; use crate::ffi::*; use crate::macros::count; diff --git a/crates/luajit/src/pushable.rs b/crates/luajit/src/pushable.rs index afe7bf1b..71adf9fa 100644 --- a/crates/luajit/src/pushable.rs +++ b/crates/luajit/src/pushable.rs @@ -1,4 +1,4 @@ -use std::ffi::{c_char, c_int}; +use core::ffi::{c_char, c_int}; use crate::ffi::{self, Integer, Number, State}; use crate::macros::count; diff --git a/crates/luajit/src/utils.rs b/crates/luajit/src/utils.rs index e036ab3f..233879e5 100644 --- a/crates/luajit/src/utils.rs +++ b/crates/luajit/src/utils.rs @@ -1,5 +1,5 @@ -use std::ffi::{c_int, CStr}; -use std::fmt::Display; +use core::ffi::{c_int, CStr}; +use core::fmt::Display; use crate::ffi::{self, State};