Skip to content

Commit

Permalink
Excercism 8 - Derive Copy to avoid move out of shared reference
Browse files Browse the repository at this point in the history
- This only worked because of a bug in 1.64.0
  - rust-lang/rust#102389
  • Loading branch information
GDYendell committed Oct 23, 2022
1 parent ce5151f commit c842c47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion allergies/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pub struct Allergies {
score: u32,
}

#[derive(Debug, PartialEq, Eq)]
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
pub enum Allergen {
Eggs,
Peanuts,
Expand Down

0 comments on commit c842c47

Please sign in to comment.