Skip to content

Commit

Permalink
Merge pull request #122 from ip1981/ip1981/cell-hash
Browse files Browse the repository at this point in the history
feat: add Eq & Hash implemetation for Cell
  • Loading branch information
Nukesor committed Aug 4, 2023
2 parents 7f5fbc9 + 8ce6f86 commit 9f45a5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use crate::{Attribute, Color};
use crate::style::CellAlignment;

/// A stylable table cell with content.
#[derive(Clone, Debug)]
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
pub struct Cell {
/// The content is a list of strings.\
/// This is done to make working with newlines more easily.\
Expand Down
2 changes: 1 addition & 1 deletion src/style/cell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/// | right |
/// +----------------------+
/// ```
#[derive(Copy, Clone, Debug)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum CellAlignment {
Left,
Right,
Expand Down

0 comments on commit 9f45a5e

Please sign in to comment.