mirror of
https://codeberg.org/icewind/palantir.git
synced 2026-06-03 18:24:08 +02:00
procfs is linux only
This commit is contained in:
parent
dd646b48ce
commit
fdb7c3c374
2 changed files with 4 additions and 0 deletions
|
|
@ -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")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue