From 5dd48b69ab7d18e9099974b031c31adcf6e2f3d8 Mon Sep 17 00:00:00 2001 From: Nikita Galaiko Date: Mon, 8 May 2023 07:44:28 +0200 Subject: [PATCH] extract reader to mod --- src-tauri/src/app/mod.rs | 3 --- src-tauri/src/app/reader/mod.rs | 6 ++++++ src-tauri/src/app/{ => reader}/reader.rs | 0 src-tauri/src/app/{ => reader}/reader_tests.rs | 0 4 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 src-tauri/src/app/reader/mod.rs rename src-tauri/src/app/{ => reader}/reader.rs (100%) rename src-tauri/src/app/{ => reader}/reader_tests.rs (100%) diff --git a/src-tauri/src/app/mod.rs b/src-tauri/src/app/mod.rs index d0a8e8e3a..ffdfdaaab 100644 --- a/src-tauri/src/app/mod.rs +++ b/src-tauri/src/app/mod.rs @@ -11,8 +11,5 @@ pub mod users; pub mod watcher; mod writer; -#[cfg(test)] -mod reader_tests; - pub use app::{AddProjectError, App}; pub use project_repository::FileStatus; diff --git a/src-tauri/src/app/reader/mod.rs b/src-tauri/src/app/reader/mod.rs new file mode 100644 index 000000000..d40125c9e --- /dev/null +++ b/src-tauri/src/app/reader/mod.rs @@ -0,0 +1,6 @@ +mod reader; + +#[cfg(test)] +mod reader_tests; + +pub use reader::{CommitReader, Content, DirReader, Error, Reader}; diff --git a/src-tauri/src/app/reader.rs b/src-tauri/src/app/reader/reader.rs similarity index 100% rename from src-tauri/src/app/reader.rs rename to src-tauri/src/app/reader/reader.rs diff --git a/src-tauri/src/app/reader_tests.rs b/src-tauri/src/app/reader/reader_tests.rs similarity index 100% rename from src-tauri/src/app/reader_tests.rs rename to src-tauri/src/app/reader/reader_tests.rs