tui-realm 0.3.2

This commit is contained in:
veeso
2021-06-06 14:19:20 +02:00
parent 8e1843f90b
commit 3a32f45334
9 changed files with 24 additions and 14 deletions

View File

@@ -37,14 +37,14 @@ use super::{
use crate::ui::keymap::*;
// ext
use tuirealm::{Msg, Payload, Value};
use tuirealm::{Msg, Payload, Update, Value};
impl SetupActivity {
impl Update for SetupActivity {
/// ### update
///
/// Update auth activity model based on msg
/// The function exits when returns None
pub(super) fn update(&mut self, msg: Option<(String, Msg)>) -> Option<(String, Msg)> {
fn update(&mut self, msg: Option<(String, Msg)>) -> Option<(String, Msg)> {
let ref_msg: Option<(&str, &Msg)> = msg.as_ref().map(|(s, msg)| (s.as_str(), msg));
// Match msg
match ref_msg {