Skip to content

Commit

Permalink
Merge #117
Browse files Browse the repository at this point in the history
117: derive PartialEq for Device r=therealprof a=MarcoIeni

Partially solves #111

Co-authored-by: MarcoIeni <[email protected]>
  • Loading branch information
bors[bot] and MarcoIeni authored May 1, 2020
2 parents 83c4908 + c761113 commit 9a97945
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/svd/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use crate::new_element;
use crate::svd::{cpu::Cpu, peripheral::Peripheral, registerproperties::RegisterProperties};

#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
#[derive(Clone, Debug)]
#[derive(Clone, Debug, PartialEq)]
pub struct Device {
/// The string identifies the device or device series. Device names are required to be unique
pub name: String,
Expand Down
2 changes: 1 addition & 1 deletion src/svd/peripheral.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use crate::svd::{
};

#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
#[derive(Clone, Debug)]
#[derive(Clone, Debug, PartialEq)]
pub struct Peripheral {
/// The string identifies the peripheral. Peripheral names are required to be unique for a device
pub name: String,
Expand Down

0 comments on commit 9a97945

Please sign in to comment.