diff --git a/crates/luaffi/src/lib.rs b/crates/luaffi/src/lib.rs index 4e920e2..b3c4b6d 100644 --- a/crates/luaffi/src/lib.rs +++ b/crates/luaffi/src/lib.rs @@ -3,8 +3,8 @@ use crate::{ string::{DROP_BUFFER_FN, IS_UTF8_FN, lua_buffer}, }; pub use luaffi_impl::*; +use rustc_hash::FxHashSet; use std::{ - collections::HashSet, ffi::{c_double, c_float, c_void}, fmt::{self, Display, Formatter, Write}, marker::PhantomData, @@ -128,8 +128,8 @@ fn cache_local(f: &mut Formatter, list: &[(&str, &str)]) -> fmt::Result { #[derive(Debug, Clone, Default)] pub struct Registry { - types: HashSet, - decls: HashSet, + types: FxHashSet, + decls: FxHashSet, cdef: String, lua: String, }