Skip to content

Commit c7c1e4d

Browse files
committed
tests: cleanup tests/ui/process/issue-14456.rs
- Remove unnecessary `mut` and remove `#![allow(unused_mut)]`. - Replace `ignore-*` with `needs-process`.
1 parent b617aae commit c7c1e4d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/ui/process/issue-14456.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::*;
@@ -20,7 +18,7 @@ fn main() {
2018
fn child() {
2119
writeln!(&mut io::stdout(), "foo").unwrap();
2220
writeln!(&mut io::stderr(), "bar").unwrap();
23-
let mut stdin = io::stdin();
21+
let stdin = io::stdin();
2422
let mut s = String::new();
2523
stdin.lock().read_line(&mut s).unwrap();
2624
assert_eq!(s.len(), 0);

0 commit comments

Comments
 (0)