about summary refs log tree commit diff
path: root/kittybox-rs/src/database/mod.rs
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2023-02-27 00:32:47 +0300
committerVika <vika@fireburn.ru>2023-02-27 00:32:47 +0300
commit06e27ddee1d090086c4b2b01cbbfec928a9264bc (patch)
tree2dbf9a059b62048b53e485bc9835cf1e336ff214 /kittybox-rs/src/database/mod.rs
parent3985d0f551236e5413e0807239f75d178f82ff3d (diff)
downloadkittybox-06e27ddee1d090086c4b2b01cbbfec928a9264bc.tar.zst
tempfile -> tempdir, remove mockito
Diffstat (limited to 'kittybox-rs/src/database/mod.rs')
-rw-r--r--kittybox-rs/src/database/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/kittybox-rs/src/database/mod.rs b/kittybox-rs/src/database/mod.rs
index 9072d9d..24cff38 100644
--- a/kittybox-rs/src/database/mod.rs
+++ b/kittybox-rs/src/database/mod.rs
@@ -546,7 +546,7 @@ mod tests {
             #[tokio::test]
             #[tracing_test::traced_test]
             async fn $func_name() {
-                let tempdir = tempdir::TempDir::new("file").expect("Failed to create tempdir");
+                let tempdir = tempfile::tempdir().expect("Failed to create tempdir");
                 let backend = super::super::FileStorage::new(
                     tempdir.path().to_path_buf()
                 )