Skip to content

Commit c842c47

Browse files
committed
Excercism 8 - Derive Copy to avoid move out of shared reference
- This only worked because of a bug in 1.64.0 - rust-lang/rust#102389
1 parent ce5151f commit c842c47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

allergies/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ pub struct Allergies {
22
score: u32,
33
}
44

5-
#[derive(Debug, PartialEq, Eq)]
5+
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
66
pub enum Allergen {
77
Eggs,
88
Peanuts,

0 commit comments

Comments
 (0)