We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cc7b37 commit fea9151Copy full SHA for fea9151
tests/basic.rs
@@ -30,10 +30,9 @@ async fn test_cat_async() {
30
31
let (mut pty, pts) = pty_process::open().unwrap();
32
pty.resize(pty_process::Size::new(24, 80)).unwrap();
33
- let mut child = pty_process::Command::new("perl")
34
- .args(["-plE", "BEGIN { $SIG{WINCH} = sub { say 'WINCH' } }"])
35
- .spawn(pts)
36
- .unwrap();
+ let mut cmd = pty_process::Command::new("perl");
+ cmd.args(["-plE", "BEGIN { $SIG{WINCH} = sub { say 'WINCH' } }"]);
+ let mut child = cmd.spawn(pts).unwrap();
37
38
let (pty_r, mut pty_w) = pty.split();
39
0 commit comments