Skip to content

Commit a7288e6

Browse files
committed
Eq impl
1 parent 3557525 commit a7288e6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
- Add `Eq` autoimplementation for enums
1011
- Use `critical_section::with` instead of `interrupt::free` for `Peripherals::take`.
1112
- Bring documentation on how to generate MSP430 PACs up to date (in line with
1213
[msp430_svd](https://github.com/pftbest/msp430_svd)).

src/generate/register.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,7 @@ fn add_with_no_variants(
10511051

10521052
mod_items.extend(quote! {
10531053
#[doc = #desc]
1054-
#[derive(Clone, Copy, Debug, PartialEq)]
1054+
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
10551055
pub struct #pc(#fty);
10561056
impl From<#pc> for #fty {
10571057
#[inline(always)]
@@ -1097,7 +1097,7 @@ fn add_from_variants(
10971097

10981098
mod_items.extend(quote! {
10991099
#[doc = #desc]
1100-
#[derive(Clone, Copy, Debug, PartialEq)]
1100+
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
11011101
#repr
11021102
pub enum #pc {
11031103
#vars

0 commit comments

Comments
 (0)