Skip to content

Commit 590f01a

Browse files
committed
Implement Eq on types in aws-smithy-xml
1 parent 78f4b07 commit 590f01a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

rust-runtime/aws-smithy-eventstream/src/frame.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ pub use value::HeaderValue;
300300

301301
/// Event Stream header.
302302
#[non_exhaustive]
303-
#[derive(Clone, Debug, PartialEq)]
303+
#[derive(Clone, Debug, PartialEq, Eq)]
304304
#[cfg_attr(feature = "derive-arbitrary", derive(arbitrary::Arbitrary))]
305305
pub struct Header {
306306
name: StrBytes,
@@ -368,7 +368,7 @@ pub fn write_headers_to<B: BufMut>(headers: &[Header], mut buffer: B) -> Result<
368368

369369
/// Event Stream message.
370370
#[non_exhaustive]
371-
#[derive(Clone, Debug, PartialEq)]
371+
#[derive(Clone, Debug, PartialEq, Eq)]
372372
pub struct Message {
373373
headers: Vec<Header>,
374374
payload: Bytes,

rust-runtime/aws-smithy-xml/src/decode.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ impl XmlError {
5151
}
5252
}
5353

54-
#[derive(PartialEq, Debug)]
54+
#[derive(PartialEq, Eq, Debug)]
5555
pub struct Name<'a> {
5656
pub prefix: &'a str,
5757
pub local: &'a str,
@@ -72,14 +72,14 @@ impl Name<'_> {
7272
}
7373
}
7474

75-
#[derive(Debug, PartialEq)]
75+
#[derive(Debug, PartialEq, Eq)]
7676
pub struct Attr<'a> {
7777
name: Name<'a>,
7878
// attribute values can be escaped (e.g. with double quotes, so we need a Cow)
7979
value: Cow<'a, str>,
8080
}
8181

82-
#[derive(Debug, PartialEq)]
82+
#[derive(Debug, PartialEq, Eq)]
8383
pub struct StartEl<'a> {
8484
name: Name<'a>,
8585
attributes: Vec<Attr<'a>>,

0 commit comments

Comments
 (0)