Skip to content

Commit

Permalink
test(vfs) Turn on host-fs _and_ mem-fs on by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hywan committed Aug 30, 2021
1 parent 2a246cf commit ac95425
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/vfs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ serde = { version = "1.0", default-features = false, features = ["derive"], opti
slab = { version = "0.4", optional = true }

[features]
default = ["host-fs"]
default = ["host-fs", "mem-fs"]
host-fs = ["libc"]
mem-fs = ["slab"]
enable-serde = [
Expand Down
2 changes: 1 addition & 1 deletion lib/vfs/src/mem_fs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ fn time() -> u64 {
// SAFETY: It's very unlikely that the system returns a time that
// is before `UNIX_EPOCH` :-).
std::time::SystemTime::now()
.duration_since(SystemTime::UNIX_EPOCH)
.duration_since(std::time::SystemTime::UNIX_EPOCH)
.unwrap()
.as_secs()
}
Expand Down

0 comments on commit ac95425

Please sign in to comment.