Rename "state" to "fsm_state" to avoid confusion

This commit is contained in:
Keavon Chambers
2021-04-06 22:21:32 -07:00
parent 0d6d6fb81b
commit fafea371ab
5 changed files with 28 additions and 28 deletions
+3 -3
View File
@@ -20,11 +20,11 @@ pub use dispatcher::Callback;
use dispatcher::Dispatcher;
use document_core::Document;
use tools::ToolState;
use tools::ToolFsmState;
use workspace::Workspace;
pub struct EditorState {
tool_state: ToolState,
tool_state: ToolFsmState,
workspace: Workspace,
document: Document,
}
@@ -39,7 +39,7 @@ impl Editor {
pub fn new(callback: Callback) -> Self {
Self {
state: EditorState {
tool_state: ToolState::new(),
tool_state: ToolFsmState::new(),
workspace: Workspace::new(),
document: Document::default(),
},