about summary refs log tree commit diff
path: root/src/database/file
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2022-05-10 07:30:08 +0300
committerVika <vika@fireburn.ru>2022-05-10 07:30:08 +0300
commit2d59c07adc4cc46cd172e45e3f0ad989e9bede33 (patch)
tree7f9218d64a6cd264bcef814e1f9ec9307974090a /src/database/file
parent1363650ee69bbeb693b99204c22c8419a716f240 (diff)
downloadkittybox-2d59c07adc4cc46cd172e45e3f0ad989e9bede33.tar.zst
FileStorage: only compile tests when needed
Diffstat (limited to 'src/database/file')
-rw-r--r--src/database/file/mod.rs1
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() {