Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use as_nanos in Ord impl for DateTime #2656

Merged
merged 3 commits into from
May 9, 2023

Conversation

henriiik
Copy link
Contributor

@henriiik henriiik commented Apr 27, 2023

Motivation and Context

This PR adresses on feedback from my previous PR.

Description

  • use as_nanos in Ord impl for DateTime instead of manual impl.

Testing

  • add proptest that checks that Ord impl matches RFC 3339 comparison.

Checklist

  • I have updated CHANGELOG.next.toml if I made changes to the smithy-rs codegen or runtime crates

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@henriiik henriiik marked this pull request as ready for review April 27, 2023 18:07
@henriiik henriiik requested review from a team as code owners April 27, 2023 18:07
Copy link
Collaborator

@jdisanti jdisanti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great. Thanks for fixing @rcoh's comment on #2653!

@jdisanti jdisanti added this pull request to the merge queue May 9, 2023
Merged via the queue into smithy-lang:main with commit 2b16503 May 9, 2023
david-perez pushed a commit that referenced this pull request May 18, 2023
## Motivation and Context
This PR adresses on [feedback from my previous
PR](#2653 (review)).


## Description
- use `as_nanos` in `Ord` impl for `DateTime` instead of manual impl.

## Testing
- add proptest that checks that `Ord` impl matches RFC 3339 comparison.

## Checklist
- [x] I have updated `CHANGELOG.next.toml` if I made changes to the
smithy-rs codegen or runtime crates

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
david-perez pushed a commit that referenced this pull request May 22, 2023
## Motivation and Context
This PR adresses on [feedback from my previous
PR](#2653 (review)).


## Description
- use `as_nanos` in `Ord` impl for `DateTime` instead of manual impl.

## Testing
- add proptest that checks that `Ord` impl matches RFC 3339 comparison.

## Checklist
- [x] I have updated `CHANGELOG.next.toml` if I made changes to the
smithy-rs codegen or runtime crates

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
david-perez pushed a commit that referenced this pull request May 22, 2023
## Motivation and Context
This PR adresses on [feedback from my previous
PR](#2653 (review)).


## Description
- use `as_nanos` in `Ord` impl for `DateTime` instead of manual impl.

## Testing
- add proptest that checks that `Ord` impl matches RFC 3339 comparison.

## Checklist
- [x] I have updated `CHANGELOG.next.toml` if I made changes to the
smithy-rs codegen or runtime crates

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants