From 82c01ecfe4f3f502048c247380c3ba29be6831ca Mon Sep 17 00:00:00 2001 From: htrefil <8711792+htrefil@users.noreply.github.com> Date: Wed, 16 Sep 2020 18:13:41 +0200 Subject: [PATCH] Restructure code a bit --- input/src/event_manager.rs | 1 - input/src/event_reader.rs | 1 + input/src/event_writer.rs | 1 + input/src/lib.rs | 4 ++-- {input => proto}/src/event.rs | 0 proto/src/lib.rs | 8 +------- 6 files changed, 5 insertions(+), 10 deletions(-) delete mode 100644 input/src/event_manager.rs create mode 100644 input/src/event_reader.rs create mode 100644 input/src/event_writer.rs rename {input => proto}/src/event.rs (100%) diff --git a/input/src/event_manager.rs b/input/src/event_manager.rs deleted file mode 100644 index 8b13789..0000000 --- a/input/src/event_manager.rs +++ /dev/null @@ -1 +0,0 @@ - diff --git a/input/src/event_reader.rs b/input/src/event_reader.rs new file mode 100644 index 0000000..c909891 --- /dev/null +++ b/input/src/event_reader.rs @@ -0,0 +1 @@ +pub struct EventReader {} diff --git a/input/src/event_writer.rs b/input/src/event_writer.rs new file mode 100644 index 0000000..1565955 --- /dev/null +++ b/input/src/event_writer.rs @@ -0,0 +1 @@ +pub struct EventWriter {} diff --git a/input/src/lib.rs b/input/src/lib.rs index ff9520d..8bf63c4 100644 --- a/input/src/lib.rs +++ b/input/src/lib.rs @@ -1,4 +1,4 @@ mod async_file; mod bindings; -mod event; -mod event_manager; +mod event_reader; +mod event_writer; diff --git a/input/src/event.rs b/proto/src/event.rs similarity index 100% rename from input/src/event.rs rename to proto/src/event.rs diff --git a/proto/src/lib.rs b/proto/src/lib.rs index 31e1bb2..428d00a 100644 --- a/proto/src/lib.rs +++ b/proto/src/lib.rs @@ -1,7 +1 @@ -#[cfg(test)] -mod tests { - #[test] - fn it_works() { - assert_eq!(2 + 2, 4); - } -} +mod event;