Skip to content

Commit 4b10584

Browse files
committed
refactor: derive Eq, Hash and Copy for View
To use as a key in a hashmap, a type must implement `Eq` and `Hash`. Additionally, `Copy` is required as well to be used in the .entry() method of Hashmap. Derive `Eq`, `Copy` and `Hash` on View to use it as a key in Hashmaps. Signed-off-by: Ivin Joel Abraham <[email protected]>
1 parent ac1616c commit 4b10584

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/model/screens/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pub mod edit_config;
44
pub mod latest;
55
pub mod mail_list;
66

7-
#[derive(Debug, Clone, PartialEq)]
7+
#[derive(Copy, Debug, Clone, PartialEq, Eq, Hash)]
88
pub enum View {
99
MailingListSelection,
1010
BookmarkedPatchsets,

0 commit comments

Comments
 (0)