From ac95425a97190d54ecea9917fa21b2b08d3dad99 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Mon, 30 Aug 2021 11:31:04 +0200 Subject: [PATCH] test(vfs) Turn on `host-fs` _and_ `mem-fs` on by default. --- lib/vfs/Cargo.toml | 2 +- lib/vfs/src/mem_fs/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vfs/Cargo.toml b/lib/vfs/Cargo.toml index 3d05e52442e..b99e630ab7f 100644 --- a/lib/vfs/Cargo.toml +++ b/lib/vfs/Cargo.toml @@ -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 = [ diff --git a/lib/vfs/src/mem_fs/mod.rs b/lib/vfs/src/mem_fs/mod.rs index 3d5ab92870f..87737e37036 100644 --- a/lib/vfs/src/mem_fs/mod.rs +++ b/lib/vfs/src/mem_fs/mod.rs @@ -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() }