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
|
//@ run-pass
|
||||||
#![allow(unused_mut)]
|
//@ needs-subprocess
|
||||||
//@ ignore-wasm32 no processes
|
|
||||||
//@ ignore-sgx no processes
|
|
||||||
|
|
||||||
use std::env;
|
use std::env;
|
||||||
use std::io::prelude::*;
|
use std::io::prelude::*;
|
||||||
|
@ -32,7 +30,7 @@ fn parent() {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn child() {
|
fn child() {
|
||||||
let mut stdin = io::stdin();
|
let stdin = io::stdin();
|
||||||
for line in stdin.lock().lines() {
|
for line in stdin.lock().lines() {
|
||||||
println!("{}", line.unwrap());
|
println!("{}", line.unwrap());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue