diff options
author | Vika <vika@fireburn.ru> | 2022-05-10 07:30:08 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2022-05-10 07:30:08 +0300 |
commit | 2d59c07adc4cc46cd172e45e3f0ad989e9bede33 (patch) | |
tree | 7f9218d64a6cd264bcef814e1f9ec9307974090a /src/database/file/mod.rs | |
parent | 1363650ee69bbeb693b99204c22c8419a716f240 (diff) | |
download | kittybox-2d59c07adc4cc46cd172e45e3f0ad989e9bede33.tar.zst |
FileStorage: only compile tests when needed
Diffstat (limited to 'src/database/file/mod.rs')
-rw-r--r-- | src/database/file/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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<PathBuf> { } #[allow(clippy::unwrap_used, clippy::expect_used)] +#[cfg(test)] mod tests { #[test] fn test_relative_path_resolving() { |