Rename state to machine
This commit is contained in:
parent
d427612bbf
commit
9a803c1dde
@ -3,7 +3,7 @@
|
||||
|
||||
use crate::tui::{
|
||||
app::{
|
||||
state::{
|
||||
machine::{
|
||||
browse::AppBrowse, critical::AppCritical, error::AppError, info::AppInfo,
|
||||
reload::AppReload, search::AppSearch, AppInner, AppMachine,
|
||||
},
|
||||
|
@ -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<MH: IMusicHoard> IAppInteractBrowse for AppMachine<MH, AppBrowse> {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::tui::app::{
|
||||
state::tests::{inner, music_hoard},
|
||||
machine::tests::{inner, music_hoard},
|
||||
IAppInteract,
|
||||
};
|
||||
|
@ -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<MH: IMusicHoard> IAppInteractCritical for AppMachine<MH, AppCritical> {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::tui::app::state::tests::{music_hoard, inner};
|
||||
use crate::tui::app::machine::tests::{music_hoard, inner};
|
||||
|
||||
use super::*;
|
||||
|
@ -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<MH: IMusicHoard> IAppInteractError for AppMachine<MH, AppError> {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::tui::app::state::tests::{inner, music_hoard};
|
||||
use crate::tui::app::machine::tests::{inner, music_hoard};
|
||||
|
||||
use super::*;
|
||||
|
@ -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<MH: IMusicHoard> IAppInteractInfo for AppMachine<MH, AppInfo> {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::tui::app::state::tests::{music_hoard, inner};
|
||||
use crate::tui::app::machine::tests::{music_hoard, inner};
|
||||
|
||||
use super::*;
|
||||
|
@ -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<MH: IMusicHoard> IAppInteractReloadPrivate<MH> for AppMachine<MH, AppReload
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::tui::app::state::tests::{inner, music_hoard};
|
||||
use crate::tui::app::machine::tests::{inner, music_hoard};
|
||||
|
||||
use super::*;
|
||||
|
@ -4,7 +4,7 @@ use crate::tui::{
|
||||
app::{
|
||||
app::App,
|
||||
selection::ListSelection,
|
||||
state::{AppInner, AppMachine},
|
||||
machine::{AppInner, AppMachine},
|
||||
AppPublic, AppState, IAppInteractSearch,
|
||||
},
|
||||
lib::IMusicHoard,
|
||||
@ -196,7 +196,7 @@ mod tests {
|
||||
use ratatui::widgets::ListState;
|
||||
|
||||
use crate::tui::{
|
||||
app::state::tests::{inner, music_hoard},
|
||||
app::machine::tests::{inner, music_hoard},
|
||||
testmod::COLLECTION,
|
||||
};
|
||||
|
@ -1,6 +1,6 @@
|
||||
pub mod app;
|
||||
pub mod selection;
|
||||
mod state;
|
||||
mod machine;
|
||||
|
||||
use musichoard::collection::Collection;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user