Skip to content

Commit 01d58b5

Browse files
committed
refactor(currentprocess): make use of Arc::default()
1 parent ff779cd commit 01d58b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/currentprocess.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,8 @@ impl TestProcess {
272272
args: args.iter().map(|s| s.as_ref().to_string()).collect(),
273273
vars,
274274
stdin: Arc::new(Mutex::new(Cursor::new(stdin.to_string()))),
275-
stdout: Arc::new(Mutex::new(Vec::new())),
276-
stderr: Arc::new(Mutex::new(Vec::new())),
275+
stdout: Arc::default(),
276+
stderr: Arc::default(),
277277
})
278278
}
279279

0 commit comments

Comments
 (0)