Skip to content

Commit c340409

Browse files
committed
Remove command line arg hangling.
1 parent b7029cf commit c340409

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

crossbeam-channel/tests/golang.rs

+1-10
Original file line numberDiff line numberDiff line change
@@ -324,16 +324,7 @@ mod goroutines {
324324

325325
#[test]
326326
fn main() {
327-
let mut n = 10_000i32;
328-
if ::std::env::args().count() > 1 {
329-
n = match i32::from_str_radix(::std::env::args().nth(1).unwrap().as_ref(), 10) {
330-
Ok(n) => n,
331-
Err(_) => {
332-
println!("bad arg");
333-
::std::process::exit(1);
334-
}
335-
};
336-
}
327+
let n = 10_000i32;
337328

338329
let leftmost = make::<i32>(0);
339330
let mut right = leftmost.clone();

0 commit comments

Comments
 (0)