Skip to content

Commit

Permalink
None core OS: fix code bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bootandy committed Mar 19, 2018
1 parent 32b653f commit 2c49536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")))]
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
None => None,
}
Expand Down

0 comments on commit 2c49536

Please sign in to comment.