fix check-fast tests.
This commit is contained in:
parent
2e8c522c62
commit
645fff4bc8
1 changed files with 2 additions and 1 deletions
|
@ -8,6 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use std::task;
|
||||||
use std::rand::{task_rng, Rng};
|
use std::rand::{task_rng, Rng};
|
||||||
|
|
||||||
static MAX_LEN: uint = 20;
|
static MAX_LEN: uint = 20;
|
||||||
|
@ -60,7 +61,7 @@ pub fn main() {
|
||||||
|
|
||||||
let v = main.clone();
|
let v = main.clone();
|
||||||
|
|
||||||
std::task::try(proc() {
|
task::try(proc() {
|
||||||
let mut v = v;
|
let mut v = v;
|
||||||
let mut fail_countdown = fail_countdown;
|
let mut fail_countdown = fail_countdown;
|
||||||
v.sort_by(|a, b| {
|
v.sort_by(|a, b| {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue