only import needed types in regex

This commit is contained in:
auronandace
2025-12-12 21:08:31 +00:00
parent 2b4c2f9ddf
commit db82136fe4
+4 -1
View File
@@ -2,7 +2,10 @@
//!
//! See <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/regex.h.html>.
use crate::{header::string::strlen, platform::types::*};
use crate::{
header::string::strlen,
platform::types::{c_char, c_int, c_void, size_t},
};
use alloc::{borrow::Cow, boxed::Box};
use core::{mem, ptr, slice};
use posix_regex::{PosixRegex, PosixRegexBuilder, compile::Error as CompileError, tree::Tree};