pci: trim qualified paths

Import the modules used in the crate instead of spelling the
fully-qualified paths at every use site. This covers std paths along
with a few crate-internal and external-crate paths, leaving pci free of
clippy::absolute_paths warnings.

Signed-off-by: Henry Hrvoje Tonkovac <htonkovac@gmail.com>
Assisted-by: Claude:Opus-4.8
This commit is contained in:
Henry Hrvoje Tonkovac
2026-06-10 16:39:28 +02:00
committed by Rob Bradford
parent 027b1a4c46
commit 57b02c765f
9 changed files with 51 additions and 49 deletions
+2 -2
View File
@@ -6,7 +6,7 @@
use core::ffi::c_int;
use core::ptr::null_mut;
use std::io::{Error, ErrorKind};
use std::io::{self, Error, ErrorKind};
use std::os::fd::{AsRawFd as _, BorrowedFd};
use libc::size_t;
@@ -55,7 +55,7 @@ impl MmapRegion {
fd: BorrowedFd,
offset1: u64,
offset2: u64,
) -> std::io::Result<Self> {
) -> io::Result<Self> {
const BAD_LENGTH: &str = "Offsets must fit in libc::off_t";
const BAD_OFFSET: &str = "Mapping length must fit \
in both isize and libc::size_t";