procfs is linux only

This commit is contained in:
Robin Appelman 2024-04-08 22:37:36 +02:00
commit fdb7c3c374
2 changed files with 4 additions and 0 deletions

View file

@ -1,3 +1,4 @@
#[cfg(not(target_os = "windows"))]
use procfs::ProcError;
use std::ffi::NulError;
use std::fmt::Write;
@ -36,6 +37,7 @@ pub enum Error {
InvalidStringData(#[from] Utf8Error),
#[error(transparent)]
InvalidCStringData(#[from] NulError),
#[cfg(not(target_os = "windows"))]
#[error(transparent)]
Proc(#[from] ProcError),
#[error("Failed to query vfs stats")]