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

Derive PartialOrd for time module types #364

Merged
merged 2 commits into from
Sep 13, 2021

Conversation

nankeen
Copy link
Contributor

@nankeen nankeen commented Sep 7, 2021

This PR derives PartialOrd for types in the time module. Which is useful in cases where it is necessary to compare frequencies.

Proposed Changes

  • Derive PartialOrd for Bps
  • Derive PartialOrd for Hertz
  • Derive PartialOrd for KiloHertz
  • Derive PartialOrd for MegaHertz

Derive PartialOrd for Bps
Derive PartialOrd for Hertz
Derive PartialOrd for KiloHertz
Derive PartialOrd for MegaHertz
@TheZoq2
Copy link
Member

TheZoq2 commented Sep 12, 2021

Great change, thanks! Would you mind adding a note to the changelog?

@nankeen
Copy link
Contributor Author

nankeen commented Sep 12, 2021

Sure thing! Hope that's in order.

@burrbull
Copy link
Member

bors r+

@bors
Copy link
Contributor

bors bot commented Sep 13, 2021

👎 Rejected by too few approved reviews

@burrbull
Copy link
Member

bors retry

@bors
Copy link
Contributor

bors bot commented Sep 13, 2021

@bors bors bot merged commit 0b3dba9 into stm32-rs:master Sep 13, 2021
@nankeen nankeen deleted the time-derive-partial-ord branch September 13, 2021 07:28
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.

3 participants