Clean up C type imports

reviewable/pr1127/r1
Tamir Duberstein 3 weeks ago
parent 41706d74e4
commit 4257643354

@ -1,11 +1,9 @@
use std::{
borrow::Cow,
collections::{HashMap, HashSet},
ffi::c_int,
fs, io,
os::{
fd::{AsFd as _, AsRawFd as _},
raw::c_int,
},
os::fd::{AsFd as _, AsRawFd as _},
path::{Path, PathBuf},
sync::{Arc, LazyLock},
};

@ -1012,10 +1012,10 @@ mod test_utils {
#[cfg(test)]
mod tests {
use std::os::fd::AsRawFd as _;
use std::{ffi::c_char, os::fd::AsRawFd as _};
use assert_matches::assert_matches;
use libc::{c_char, EFAULT};
use libc::EFAULT;
fn new_obj_map() -> obj::Map {
test_utils::new_obj_map::<u32>(crate::generated::bpf_map_type::BPF_MAP_TYPE_HASH)

Loading…
Cancel
Save