Skip to content

Commit

Permalink
tests: cleanup tests/ui/process/issue-13304.rs
Browse files Browse the repository at this point in the history
- Remove unnecessary `mut`, remove `#[allow(unused_mut)]`.
- Replace `ignore-*` with `needs-subprocess`.
  • Loading branch information
jieyouxu committed Jan 23, 2025
1 parent bb36a40 commit 1abb936
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/ui/process/issue-13304.rs
Original file line number Diff line number Diff line change
@@ -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::*;
Expand Down Expand Up @@ -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());
}
Expand Down

0 comments on commit 1abb936

Please sign in to comment.