Browse Source

fix(lib): use proc_mounts only on linux

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Christina Sørensen 2 năm trước cách đây
mục cha
commit
abf9538d1d
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      src/lib.rs

+ 1 - 0
src/lib.rs

@@ -3,6 +3,7 @@ extern crate lazy_static;
 
 use crate::fs::mounts::MountedFs;
 
+#[cfg(target_os = "linux")]
 use proc_mounts::MountList;
 use std::collections::HashMap;
 use std::path::PathBuf;