tests: cleanup tests/ui/process/issue-13304.rs
- Remove unnecessary `mut`, remove `#[allow(unused_mut)]`. - Replace `ignore-*` with `needs-subprocess`.
This commit is contained in:
parent
bb36a40557
commit
1abb93608f
1 changed files with 2 additions and 4 deletions
|
@ -1,7 +1,5 @@
|
|||
//@ run-pass
|
||||
#![allow(unused_mut)]
|
||||
//@ ignore-wasm32 no processes
|
||||
//@ ignore-sgx no processes
|
||||
//@ needs-subprocess
|
||||
|
||||
use std::env;
|
||||
use std::io::prelude::*;
|
||||
|
@ -32,7 +30,7 @@ fn parent() {
|
|||
}
|
||||
|
||||
fn child() {
|
||||
let mut stdin = io::stdin();
|
||||
let stdin = io::stdin();
|
||||
for line in stdin.lock().lines() {
|
||||
println!("{}", line.unwrap());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue