From 78b75510811c603371f49c5541651ad9ce772a6b Mon Sep 17 00:00:00 2001 From: mujunxiang <1948535941@qq.com> Date: Tue, 3 Dec 2024 11:11:02 +0800 Subject: [PATCH] fix none import Signed-off-by: mujunxiang <1948535941@qq.com> --- ecstore/src/utils/os/unix.rs | 1 + ecstore/src/utils/os/windows.rs | 1 + madmin/src/net/mod.rs | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ecstore/src/utils/os/unix.rs b/ecstore/src/utils/os/unix.rs index 559a2a943..cf9f414fa 100644 --- a/ecstore/src/utils/os/unix.rs +++ b/ecstore/src/utils/os/unix.rs @@ -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}; diff --git a/ecstore/src/utils/os/windows.rs b/ecstore/src/utils/os/windows.rs index 126e77912..e49777d8f 100644 --- a/ecstore/src/utils/os/windows.rs +++ b/ecstore/src/utils/os/windows.rs @@ -1,3 +1,4 @@ +use super::IOStats; use crate::{disk::Info, error::Result}; use std::io::{Error, ErrorKind, Result}; use std::mem; diff --git a/madmin/src/net/mod.rs b/madmin/src/net/mod.rs index 4fe4c1be1..3a538af43 100644 --- a/madmin/src/net/mod.rs +++ b/madmin/src/net/mod.rs @@ -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()