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

Some minor cleanups on Unix #1

Merged
merged 1 commit into from
Jan 25, 2017
Merged

Some minor cleanups on Unix #1

merged 1 commit into from
Jan 25, 2017

Conversation

mbrubeck
Copy link
Contributor

  • Build winapi crates on Windows only
  • Fix an unused import warning

@@ -607,7 +607,6 @@ mod os {
use std::ffi::OsString;
use std::time::{Duration, Instant};

use super::ChildState::*;
Copy link
Owner

Choose a reason for hiding this comment

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

Unfortunately, omitting this line prevents successful compilation with Rust 1.14.0 (stable). This is visible in the Travis CI log.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, I see. I guess this changed in Rust 1.15 because of rust-lang/rust#35120. I have removed this change from the PR.

@hniksic hniksic merged commit 51fc94f into hniksic:master Jan 25, 2017
@hniksic
Copy link
Owner

hniksic commented Jan 25, 2017

Merged, thanks for the patch.

Maybe we could avoid a spurious warning on 1.15.x with a #![cfg(...)] guard? I'm not sure if that's standard practice in Rust, but it's a small price to pay for a warningless compile.

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