From 9c2cd2566fdcb885a44702905dca08e3143cb1a0 Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 5 Dec 2024 20:25:00 -0500 Subject: [PATCH] Prepare for rust edition 2021 --- src/files.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/files.rs b/src/files.rs index e6feb99..7eba0d4 100644 --- a/src/files.rs +++ b/src/files.rs @@ -396,7 +396,7 @@ mod tests { } fn move_file>(&self, from: P, destination: P) -> anyhow::Result<()> { - todo!() + } } @@ -449,6 +449,7 @@ mod tests { Arc::new(StreamActor {}.start()), String::from("/tmp"), String::from("/tmp/thumbs"), + String::from("/tmp/video"), )), Data::new(RealFileSystem::new(String::from("/tmp"))), Data::new(Mutex::new(SqliteTagDao::default())), @@ -490,6 +491,7 @@ mod tests { Arc::new(StreamActor {}.start()), String::from("/tmp"), String::from("/tmp/thumbs"), + String::from("/tmp/video"), )), Data::new(RealFileSystem::new(String::from("./"))), Data::new(Mutex::new(SqliteTagDao::default())), @@ -536,6 +538,7 @@ mod tests { Arc::new(StreamActor {}.start()), String::from(""), String::from("/tmp/thumbs"), + String::from("/tmp/video"), )), Data::new(FakeFileSystem::new(files)), Data::new(Mutex::new(tag_dao)), @@ -593,6 +596,7 @@ mod tests { Arc::new(StreamActor {}.start()), String::from(""), String::from("/tmp/thumbs"), + String::from("/tmp/video"), )), Data::new(FakeFileSystem::new(files)), Data::new(Mutex::new(tag_dao)),