Merge pull request #143 from rustfs/fix-os

fix none import
This commit is contained in:
junxiangMu
2024-12-03 11:11:38 +08:00
committed by GitHub
3 changed files with 3 additions and 1 deletions
+1
View File
@@ -1,3 +1,4 @@
use super::IOStats;
use crate::{disk::Info, error::Result};
use nix::sys::{stat::stat, statfs::statfs};
use std::io::{Error, ErrorKind};
+1
View File
@@ -1,3 +1,4 @@
use super::IOStats;
use crate::{disk::Info, error::Result};
use std::io::{Error, ErrorKind, Result};
use std::mem;
+1 -1
View File
@@ -16,7 +16,7 @@ pub fn get_net_info(addr: &str, iface: &str) -> NetInfo {
NetInfo {
node_common: NodeCommon {
addr: addr.to_owned(),
error: "Not implemented for non-linux platforms".to_owned(),
error: Some("Not implemented for non-linux platforms".to_string()),
},
interface: iface.to_owned(),
..Default::default()