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

Make functions that can be const, const #394

Merged
merged 1 commit into from
Apr 7, 2019
Merged

Conversation

mehcode
Copy link
Contributor

@mehcode mehcode commented Apr 7, 2019

I'm submitting a(n) feature|refactor

Description

Add const fn in a few more places than #389. Used clippy and its nursery lint to detect them.

Motivation

More const fn the better.

Tests

Current tests should pass. No new tests added

Related Issue(s)

@kinggoesgaming
Copy link
Member

hmm I thought I missed stuff when I did that PR.. Thanks @mehcode

@kinggoesgaming kinggoesgaming added this to the 0.8.0 milestone Apr 7, 2019
@kinggoesgaming
Copy link
Member

bors r+

bors bot added a commit that referenced this pull request Apr 7, 2019
394: Make functions that can be const, const r=kinggoesgaming a=mehcode

**I'm submitting a(n)** feature|refactor

# Description

Add `const fn` in a few more places than #389. Used `clippy` and its nursery lint to detect them.

# Motivation

More `const fn` the better. 

# Tests

Current tests should pass. No new tests added

# Related Issue(s)


Co-authored-by: Ryan Leckey <[email protected]>
@bors
Copy link
Contributor

bors bot commented Apr 7, 2019

@bors bors bot merged commit 37ebcd4 into uuid-rs:master Apr 7, 2019
bors bot added a commit that referenced this pull request Oct 17, 2019
433: Prepare for 0.8.0 release r=Dylan-DPC a=KodrAus

Closes #431 

[Changeset since the last release](0.7.4...master)

Includes:

- #427 
- #419 
- #424 
- #418 
- #413 
- #407 
- #404 
- #400 
- #399 
- #398 
- #397 
- #396 
- #394 
- #393 
- #390
- #389 
- #388 

I've also added some docs to the 128bit integer methods to clarify how they're different than `to_fields` (for consistency with other uuid libs in the wild).

Co-authored-by: Ashley Mannix <[email protected]>
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