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 values for all Float methods #82

Merged
merged 2 commits into from Jun 13, 2020
Merged

Commits on Jun 13, 2020

  1. Use values for all Float methods

    Since `T: Float` also implies `T: Copy`, we don't need the indirection
    of a reference for `self` or other parameters. Most of these are marked
    `#[inline]` anyway, so in the end the change won't make much difference
    to optimization, but it's semantically cleaner.
    
    Users probably won't notice the change in method calls from `&self` to
    `self`, but construction `from_polar` will need adjustment.
    cuviper committed Jun 13, 2020
    Copy the full SHA
    3564494 View commit details
    Browse the repository at this point in the history
  2. cargo fmt

    cuviper committed Jun 13, 2020
    Copy the full SHA
    59624e8 View commit details
    Browse the repository at this point in the history