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 Void in exec return type #357

Merged
merged 1 commit into from
Apr 23, 2016
Merged

Use Void in exec return type #357

merged 1 commit into from
Apr 23, 2016

Conversation

arcnmx
Copy link
Contributor

@arcnmx arcnmx commented Apr 18, 2016

Indicates that these methods cannot return successfully. This does introduce a new dependency; an empty enum could be used instead but then you would lose the convenience unreachable methods exposed by the void crate, and standardizing on one type, etc...

@fiveop
Copy link
Contributor

fiveop commented Apr 21, 2016

I approve, but a new dependency probably warrants a second opionion.

@posborne
Copy link
Member

Given its well-constrained purpose and small size, I am on board. I fixed support for rust back to 1.0 for the 0.1.2 released (regressed when no_std support was added). @humu r+

CC @reem

@kamalmarhubi
Copy link
Member

@homu r=@posborne

:-)

@homu
Copy link
Contributor

homu commented Apr 23, 2016

📌 Commit cb51657 has been approved by @posborne

homu added a commit that referenced this pull request Apr 23, 2016
Use Void in exec return type

Indicates that these methods cannot return successfully. This does introduce a new dependency; an empty enum could be used instead but then you would lose the convenience `unreachable` methods exposed by the `void` crate, and standardizing on one type, etc...
@homu
Copy link
Contributor

homu commented Apr 23, 2016

⌛ Testing commit cb51657 with merge 5fa5fd4...

@homu
Copy link
Contributor

homu commented Apr 23, 2016

☀️ Test successful - status

@homu homu merged commit cb51657 into nix-rust:master Apr 23, 2016
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.

None yet

5 participants