Skip to content

Commit

Permalink
feat: Remove strum
Browse files Browse the repository at this point in the history
  • Loading branch information
kdheepak committed Feb 19, 2024
1 parent af6650f commit 27b5cef
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion code/crates-tui-tutorial-app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ itertools = "0.12.0"
log = "0.4.20"
num-format = "0.4.4"
ratatui = { version = "0.26.1-alpha.0", features = ["serde", "macros"] }
strum = { version = "0.26.1", features = ["derive"] }
tokio = { version = "1.36.0", features = ["full"] }
tokio-stream = "0.1.14"
tui-input = "0.8.0"
Expand Down
4 changes: 1 addition & 3 deletions code/crates-tui-tutorial-app/src/action.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
use strum::Display;

use crate::app::Mode;

#[derive(Debug, Display, Clone, PartialEq, Eq)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum Action {
Tick,
Render,
Expand Down
3 changes: 1 addition & 2 deletions code/crates-tui-tutorial-app/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use std::sync::{atomic::AtomicBool, Arc};
use color_eyre::eyre::Result;
use crossterm::event::KeyEvent;
use ratatui::prelude::*;
use strum::{Display, EnumIs};
use tokio::sync::mpsc::{self, UnboundedReceiver, UnboundedSender};

use crate::{
Expand All @@ -14,7 +13,7 @@ use crate::{
};

// ANCHOR: mode
#[derive(Default, Debug, Display, Clone, Copy, PartialEq, Eq, Hash, EnumIs)]
#[derive(Default, Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum Mode {
#[default]
Prompt,
Expand Down

0 comments on commit 27b5cef

Please sign in to comment.