Commit Graph

10 Commits

Author SHA1 Message Date
Taiki Endo 73f3f8f308 Fix clippy::needless_borrow warning
```
warning: the borrowed expression implements the required traits
   --> tests/std.rs:311:29
    |
311 |             cmd.env("PATH", &p);
    |                             ^^ help: change this to: `p`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
    = note: `#[warn(clippy::needless_borrow)]` on by default
```
2022-12-30 13:43:50 +09:00
John Nunley de1071784e
Port to windows-sys (#27) 2022-11-26 21:14:01 -08:00
Taiki Endo d9b78cb400 Fix clippy::needless_return warning in test
```
warning: unneeded `return` statement
  --> tests/std.rs:80:5
   |
80 |     return ret;
   |     ^^^^^^^^^^^ help: remove `return`: `ret`
   |
   = note: `#[warn(clippy::needless_return)]` on by default
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
```
2022-07-17 21:32:20 +09:00
Taiki Endo fbc300608c Fix clippy::single_match warning in test
```
warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`
  --> tests/std.rs:26:5
   |
26 | /     match Command::new("if-this-is-a-binary-then-the-world-has-ended").spawn() {
27 | |         Ok(..) => panic!(),
28 | |         Err(..) => {}
29 | |     }
   | |_____^ help: try this: `if let Ok(..) = Command::new("if-this-is-a-binary-then-the-world-has-ended").spawn() { panic!() }`
   |
   = note: `#[warn(clippy::single_match)]` on by default
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match
```
2022-07-17 21:31:38 +09:00
Jesse Luehrs afff8c533d don't unconfigure stdio streams on spawn 2021-12-30 22:13:17 -05:00
Félix Saparelli d91b557db3 Implement AsRawHandle on Child on Windows 2021-07-31 18:45:29 +12:00
Alexandru Macovei 6ea203d787 Fix Child::output to avoid killing the subprocess early when kill_on_drop is given 2021-01-31 22:43:19 +02:00
Stjepan Glavina 974c3cc080 Update futures-lite 2020-10-09 14:37:51 +02:00
Stjepan Glavina 79706e0bc0 Ignore some tests on windows 2020-08-19 13:41:24 +00:00
Stjepan Glavina 71d3dfcbab Initial version 2020-08-19 13:34:03 +00:00