Skip to content

Commit

Permalink
Implement Eq on types in aws-smithy-types
Browse files Browse the repository at this point in the history
  • Loading branch information
jjant committed Oct 7, 2022
1 parent aaf14f3 commit c45a6b5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion rust-runtime/aws-smithy-types/src/date_time/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const NANOS_PER_SECOND_U32: u32 = 1_000_000_000;
/// The [`aws-smithy-types-convert`](https://crates.io/crates/aws-smithy-types-convert) crate
/// can be used for conversions to/from other libraries, such as
/// [`time`](https://crates.io/crates/time) or [`chrono`](https://crates.io/crates/chrono).
#[derive(Debug, PartialEq, Clone, Copy)]
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
pub struct DateTime {
seconds: i64,
subsecond_nanos: u32,
Expand Down
2 changes: 1 addition & 1 deletion rust-runtime/aws-smithy-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub use crate::date_time::DateTime;
/// Binary Blob Type
///
/// Blobs represent protocol-agnostic binary content.
#[derive(Debug, PartialEq, Clone)]
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct Blob {
inner: Vec<u8>,
}
Expand Down
4 changes: 2 additions & 2 deletions rust-runtime/aws-smithy-types/src/retry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ impl FromStr for RetryMode {

/// Builder for [`RetryConfig`].
#[non_exhaustive]
#[derive(Debug, Default, Clone, PartialEq)]
#[derive(Debug, Default, Clone, PartialEq, Eq)]
pub struct RetryConfigBuilder {
mode: Option<RetryMode>,
max_attempts: Option<u32>,
Expand Down Expand Up @@ -217,7 +217,7 @@ impl RetryConfigBuilder {

/// Retry configuration for requests.
#[non_exhaustive]
#[derive(Debug, Clone, PartialEq)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct RetryConfig {
mode: RetryMode,
max_attempts: u32,
Expand Down
4 changes: 2 additions & 2 deletions rust-runtime/aws-smithy-types/src/timeout/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ impl From<TimeoutConfig> for TimeoutConfigBuilder {
/// # }
/// ```
#[non_exhaustive]
#[derive(Clone, PartialEq, Debug)]
#[derive(Clone, PartialEq, Eq, Debug)]
pub struct TimeoutConfig {
connect_timeout: Option<Duration>,
read_timeout: Option<Duration>,
Expand Down Expand Up @@ -274,7 +274,7 @@ impl TimeoutConfig {

/// Configuration subset of [`TimeoutConfig`] for operation timeouts
#[non_exhaustive]
#[derive(Clone, PartialEq, Debug)]
#[derive(Clone, PartialEq, Eq, Debug)]
pub struct OperationTimeoutConfig {
operation_timeout: Option<Duration>,
operation_attempt_timeout: Option<Duration>,
Expand Down

0 comments on commit c45a6b5

Please sign in to comment.