#[cfg(test)]
#[allow(unused_imports)]
mod tests {
- use prelude::v1::*;
-
use thread;
use sync::mpsc::*;
fn fmt_debug_handle() {
let (_, rx) = channel::<i32>();
let sel = Select::new();
- let mut handle = sel.handle(&rx);
+ let handle = sel.handle(&rx);
assert_eq!(format!("{:?}", handle), "Handle { .. }");
}
}