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()