diff options
Diffstat (limited to 'src/commands/quit.rs')
-rw-r--r-- | src/commands/quit.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/commands/quit.rs b/src/commands/quit.rs index 77732d4..bf1132f 100644 --- a/src/commands/quit.rs +++ b/src/commands/quit.rs @@ -1,7 +1,7 @@ use crate::commands::{JoshutoCommand, JoshutoRunnable}; use crate::context::JoshutoContext; use crate::error::{JoshutoError, JoshutoErrorKind, JoshutoResult}; -use crate::window::JoshutoView; +use crate::ui::TuiBackend; #[derive(Clone, Debug)] pub struct Quit; @@ -36,7 +36,7 @@ impl std::fmt::Display for Quit { } impl JoshutoRunnable for Quit { - fn execute(&self, context: &mut JoshutoContext, _: &JoshutoView) -> JoshutoResult<()> { + fn execute(&self, context: &mut JoshutoContext, _: &mut TuiBackend) -> JoshutoResult<()> { Self::quit(context) } } @@ -72,7 +72,7 @@ impl std::fmt::Display for ForceQuit { } impl JoshutoRunnable for ForceQuit { - fn execute(&self, context: &mut JoshutoContext, _: &JoshutoView) -> JoshutoResult<()> { + fn execute(&self, context: &mut JoshutoContext, _: &mut TuiBackend) -> JoshutoResult<()> { Self::force_quit(context); Ok(()) } |