Skip to content

Commit 9a97945

Browse files
bors[bot]marcoieni
andauthored
Merge #117
117: derive PartialEq for Device r=therealprof a=MarcoIeni Partially solves #111 Co-authored-by: MarcoIeni <[email protected]>
2 parents 83c4908 + c761113 commit 9a97945

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/svd/device.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use crate::new_element;
1616
use crate::svd::{cpu::Cpu, peripheral::Peripheral, registerproperties::RegisterProperties};
1717

1818
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
19-
#[derive(Clone, Debug)]
19+
#[derive(Clone, Debug, PartialEq)]
2020
pub struct Device {
2121
/// The string identifies the device or device series. Device names are required to be unique
2222
pub name: String,

src/svd/peripheral.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use crate::svd::{
1919
};
2020

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

0 commit comments

Comments
 (0)