mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-13 16:46:55 +00:00
fix: fix windows build
This commit is contained in:
Generated
+3
@@ -1494,6 +1494,9 @@ name = "ipnetwork"
|
|||||||
version = "0.21.1"
|
version = "0.21.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "cf370abdafd54d13e54a620e8c3e1145f28e46cc9d704bc6d94414559df41763"
|
checksum = "cf370abdafd54d13e54a620e8c3e1145f28e46cc9d704bc6d94414559df41763"
|
||||||
|
dependencies = [
|
||||||
|
"serde",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "is_debug"
|
name = "is_debug"
|
||||||
|
|||||||
@@ -46,7 +46,6 @@ use crate::{
|
|||||||
utils,
|
utils,
|
||||||
};
|
};
|
||||||
use common::defer;
|
use common::defer;
|
||||||
use nix::NixPath;
|
|
||||||
use path_absolutize::Absolutize;
|
use path_absolutize::Absolutize;
|
||||||
use std::collections::{HashMap, HashSet};
|
use std::collections::{HashMap, HashSet};
|
||||||
use std::fmt::Debug;
|
use std::fmt::Debug;
|
||||||
@@ -414,7 +413,7 @@ impl LocalDisk {
|
|||||||
file_path: impl AsRef<Path>,
|
file_path: impl AsRef<Path>,
|
||||||
read_data: bool,
|
read_data: bool,
|
||||||
) -> Result<(Vec<u8>, Option<OffsetDateTime>)> {
|
) -> Result<(Vec<u8>, Option<OffsetDateTime>)> {
|
||||||
if file_path.as_ref().is_empty() {
|
if file_path.as_ref().as_os_str().is_empty() {
|
||||||
return Err(Error::new(DiskError::FileNotFound));
|
return Err(Error::new(DiskError::FileNotFound));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -21,7 +21,7 @@ thiserror.workspace = true
|
|||||||
strum = { version = "0.26.3", features = ["derive"] }
|
strum = { version = "0.26.3", features = ["derive"] }
|
||||||
arc-swap = "1.7.1"
|
arc-swap = "1.7.1"
|
||||||
crypto = { path = "../crypto" }
|
crypto = { path = "../crypto" }
|
||||||
ipnetwork = "0.21.1"
|
ipnetwork = { version = "0.21.1", features = ["serde"] }
|
||||||
itertools = "0.14.0"
|
itertools = "0.14.0"
|
||||||
futures.workspace = true
|
futures.workspace = true
|
||||||
rand.workspace = true
|
rand.workspace = true
|
||||||
|
|||||||
Reference in New Issue
Block a user