Skip to content

Commit 1abb936

Browse files
committed
tests: cleanup tests/ui/process/issue-13304.rs
- Remove unnecessary `mut`, remove `#[allow(unused_mut)]`. - Replace `ignore-*` with `needs-subprocess`.
1 parent bb36a40 commit 1abb936

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/ui/process/issue-13304.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//@ run-pass
2-
#![allow(unused_mut)]
3-
//@ ignore-wasm32 no processes
4-
//@ ignore-sgx no processes
2+
//@ needs-subprocess
53

64
use std::env;
75
use std::io::prelude::*;
@@ -32,7 +30,7 @@ fn parent() {
3230
}
3331

3432
fn child() {
35-
let mut stdin = io::stdin();
33+
let stdin = io::stdin();
3634
for line in stdin.lock().lines() {
3735
println!("{}", line.unwrap());
3836
}

0 commit comments

Comments
 (0)