Skip to content

Commit

Permalink
refactor(tui): simplify the Eq implementation for LoggerCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Apr 26, 2023
1 parent 77a2d2d commit 9b38c09
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions systeroid-tui/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ use termion::event::Key;
use tui_logger::TuiWidgetEvent;

/// Possible logger widget commands.
#[derive(Debug, PartialEq)]
#[derive(Debug, Eq, PartialEq)]
pub struct LoggerCommand(pub TuiWidgetEvent);

impl Eq for LoggerCommand {}

impl LoggerCommand {
/// Parses a logger command from the given key.
pub fn parse(key: Key) -> Option<Self> {
Expand Down

0 comments on commit 9b38c09

Please sign in to comment.