mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
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:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user