mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
None core OS: fix code bug
This commit is contained in:
+1
-1
@@ -158,7 +158,7 @@ fn get_metadata_blocks_and_inode(d: &std::fs::DirEntry) -> Option<(u64, u64)> {
|
|||||||
|
|
||||||
#[cfg(not(any(target_os = "linux", target_os = "unix", target_os = "macos")))]
|
#[cfg(not(any(target_os = "linux", target_os = "unix", target_os = "macos")))]
|
||||||
fn get_metadata_blocks_and_inode(_d: &std::fs::DirEntry) -> Option<(u64, u64)> {
|
fn get_metadata_blocks_and_inode(_d: &std::fs::DirEntry) -> Option<(u64, u64)> {
|
||||||
match d.metadata().ok() {
|
match _d.metadata().ok() {
|
||||||
Some(md) => Some((md.len(), 0)), //move to option not 0
|
Some(md) => Some((md.len(), 0)), //move to option not 0
|
||||||
None => None,
|
None => None,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user