From 164dbe76c6842245c34ea67b084b2a99aa056b85 Mon Sep 17 00:00:00 2001 From: Vika Date: Tue, 19 Jul 2022 06:16:27 +0300 Subject: media: fix small files not being saved to disk properly It turns out that BufWriter requires calling `flush()` manually and doesn't do it on `drop()`. I forgot about that. --- kittybox-rs/Cargo.lock | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'kittybox-rs/Cargo.lock') diff --git a/kittybox-rs/Cargo.lock b/kittybox-rs/Cargo.lock index 716b10d..e325b54 100644 --- a/kittybox-rs/Cargo.lock +++ b/kittybox-rs/Cargo.lock @@ -1536,6 +1536,7 @@ dependencies = [ "tracing", "tracing-log", "tracing-subscriber", + "tracing-test", "tracing-tree", "url", ] @@ -3560,6 +3561,29 @@ dependencies = [ "tracing-serde", ] +[[package]] +name = "tracing-test" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6992d8a98f570be1c729fe8b6f464fb18c4117054c10f1f952c22d533b48a74" +dependencies = [ + "lazy_static", + "tracing-core", + "tracing-subscriber", + "tracing-test-macro", +] + +[[package]] +name = "tracing-test-macro" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "719fa6c65bada6a7a3b8466702ec6fb4c4189b69339f78c9e597f796e493712e" +dependencies = [ + "lazy_static", + "quote 1.0.18", + "syn 1.0.93", +] + [[package]] name = "tracing-tree" version = "0.2.1" -- cgit 1.4.1