From 2d59c07adc4cc46cd172e45e3f0ad989e9bede33 Mon Sep 17 00:00:00 2001 From: Vika Date: Tue, 10 May 2022 07:30:08 +0300 Subject: FileStorage: only compile tests when needed --- src/database/file/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/database/file/mod.rs b/src/database/file/mod.rs index f9588f5..1e7aa96 100644 --- a/src/database/file/mod.rs +++ b/src/database/file/mod.rs @@ -81,6 +81,7 @@ fn path_relative_from(path: &Path, base: &Path) -> Option { } #[allow(clippy::unwrap_used, clippy::expect_used)] +#[cfg(test)] mod tests { #[test] fn test_relative_path_resolving() { -- cgit 1.4.1