From 9a803c1ddef0db613ac44ad4782944cb5aa19323 Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Sun, 18 Feb 2024 14:05:07 +0100 Subject: [PATCH] Rename state to machine --- src/tui/app/app.rs | 2 +- src/tui/app/{state => machine}/browse.rs | 4 ++-- src/tui/app/{state => machine}/critical.rs | 4 ++-- src/tui/app/{state => machine}/error.rs | 4 ++-- src/tui/app/{state => machine}/info.rs | 4 ++-- src/tui/app/{state => machine}/mod.rs | 0 src/tui/app/{state => machine}/reload.rs | 4 ++-- src/tui/app/{state => machine}/search.rs | 4 ++-- src/tui/app/mod.rs | 2 +- 9 files changed, 14 insertions(+), 14 deletions(-) rename src/tui/app/{state => machine}/browse.rs (97%) rename src/tui/app/{state => machine}/critical.rs (92%) rename src/tui/app/{state => machine}/error.rs (92%) rename src/tui/app/{state => machine}/info.rs (92%) rename src/tui/app/{state => machine}/mod.rs (100%) rename src/tui/app/{state => machine}/reload.rs (97%) rename src/tui/app/{state => machine}/search.rs (99%) diff --git a/src/tui/app/app.rs b/src/tui/app/app.rs index 4664fff..4d0c7ec 100644 --- a/src/tui/app/app.rs +++ b/src/tui/app/app.rs @@ -3,7 +3,7 @@ use crate::tui::{ app::{ - state::{ + machine::{ browse::AppBrowse, critical::AppCritical, error::AppError, info::AppInfo, reload::AppReload, search::AppSearch, AppInner, AppMachine, }, diff --git a/src/tui/app/state/browse.rs b/src/tui/app/machine/browse.rs similarity index 97% rename from src/tui/app/state/browse.rs rename to src/tui/app/machine/browse.rs index e4c950d..d7ad5c7 100644 --- a/src/tui/app/state/browse.rs +++ b/src/tui/app/machine/browse.rs @@ -1,8 +1,8 @@ use crate::tui::{ app::{ app::App, + machine::{AppInner, AppMachine}, selection::{Delta, ListSelection}, - state::{AppInner, AppMachine}, AppPublic, AppState, IAppInteractBrowse, }, lib::IMusicHoard, @@ -95,7 +95,7 @@ impl IAppInteractBrowse for AppMachine { #[cfg(test)] mod tests { use crate::tui::app::{ - state::tests::{inner, music_hoard}, + machine::tests::{inner, music_hoard}, IAppInteract, }; diff --git a/src/tui/app/state/critical.rs b/src/tui/app/machine/critical.rs similarity index 92% rename from src/tui/app/state/critical.rs rename to src/tui/app/machine/critical.rs index 690584a..a02d7f2 100644 --- a/src/tui/app/state/critical.rs +++ b/src/tui/app/machine/critical.rs @@ -1,7 +1,7 @@ use crate::tui::{ app::{ app::App, - state::{AppInner, AppMachine}, + machine::{AppInner, AppMachine}, AppPublic, AppState, IAppInteractCritical, }, lib::IMusicHoard, @@ -47,7 +47,7 @@ impl IAppInteractCritical for AppMachine { #[cfg(test)] mod tests { - use crate::tui::app::state::tests::{music_hoard, inner}; + use crate::tui::app::machine::tests::{music_hoard, inner}; use super::*; diff --git a/src/tui/app/state/error.rs b/src/tui/app/machine/error.rs similarity index 92% rename from src/tui/app/state/error.rs rename to src/tui/app/machine/error.rs index 271f020..006d4cf 100644 --- a/src/tui/app/state/error.rs +++ b/src/tui/app/machine/error.rs @@ -1,7 +1,7 @@ use crate::tui::{ app::{ app::App, - state::{AppInner, AppMachine}, + machine::{AppInner, AppMachine}, AppPublic, AppState, IAppInteractError, }, lib::IMusicHoard, @@ -47,7 +47,7 @@ impl IAppInteractError for AppMachine { #[cfg(test)] mod tests { - use crate::tui::app::state::tests::{inner, music_hoard}; + use crate::tui::app::machine::tests::{inner, music_hoard}; use super::*; diff --git a/src/tui/app/state/info.rs b/src/tui/app/machine/info.rs similarity index 92% rename from src/tui/app/state/info.rs rename to src/tui/app/machine/info.rs index f9676be..0b82292 100644 --- a/src/tui/app/state/info.rs +++ b/src/tui/app/machine/info.rs @@ -1,7 +1,7 @@ use crate::tui::{ app::{ app::App, - state::{AppInner, AppMachine}, + machine::{AppInner, AppMachine}, AppPublic, AppState, IAppInteractInfo, }, lib::IMusicHoard, @@ -47,7 +47,7 @@ impl IAppInteractInfo for AppMachine { #[cfg(test)] mod tests { - use crate::tui::app::state::tests::{music_hoard, inner}; + use crate::tui::app::machine::tests::{music_hoard, inner}; use super::*; diff --git a/src/tui/app/state/mod.rs b/src/tui/app/machine/mod.rs similarity index 100% rename from src/tui/app/state/mod.rs rename to src/tui/app/machine/mod.rs diff --git a/src/tui/app/state/reload.rs b/src/tui/app/machine/reload.rs similarity index 97% rename from src/tui/app/state/reload.rs rename to src/tui/app/machine/reload.rs index 5b17684..55d276d 100644 --- a/src/tui/app/state/reload.rs +++ b/src/tui/app/machine/reload.rs @@ -2,7 +2,7 @@ use crate::tui::{ app::{ app::App, selection::IdSelection, - state::{AppInner, AppMachine}, + machine::{AppInner, AppMachine}, AppPublic, AppState, IAppInteractReload, }, lib::IMusicHoard, @@ -83,7 +83,7 @@ impl IAppInteractReloadPrivate for AppMachine