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

tokio-process: Implement From<StdCommand> for Command #1513

Merged
merged 1 commit into from
Aug 31, 2019

Conversation

fenhl
Copy link
Contributor

@fenhl fenhl commented Aug 30, 2019

This allows the usage of std::os::{unix,windows}::process::CommandExt, which can't be implemented on tokio_process::Command since their methods have &mut StdCommand return types.

This allows the usage of `std::os::{unix,windows}::process::CommandExt`, which can't be implemented on `tokio_process::Command` since their methods have `&mut StdCommand` return types.
Copy link
Member

@ipetkov ipetkov 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 good to me!

@carllerche any thoughts?

@carllerche
Copy link
Member

This seems fine to me either way, but I don't understand why we can't add OS specific fns.

Copy link
Member

@carllerche carllerche left a comment

Choose a reason for hiding this comment

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

Thanks! Looks great 👍

@ipetkov
Copy link
Member

ipetkov commented Aug 30, 2019

BSD failure looked spurious so I restarted it, let's see if it passes

@ipetkov ipetkov merged commit 2643235 into tokio-rs:master Aug 31, 2019
@fenhl fenhl deleted the command-from branch August 31, 2019 18:49
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