1
0
mirror of https://github.com/rcore-os/rCore.git synced 2024-11-22 16:16:16 +04:00

Fix imports

This commit is contained in:
WangRunji 2018-06-05 01:34:36 +08:00
parent 1760d76581
commit bf46193c01

View File

@ -82,13 +82,13 @@ pub fn channel<T>() -> (Sender<T>, Receiver<T>) {
(sender, receiver)
}
use alloc::boxed::Box;
use super::*;
use thread;
pub mod test {
//! Copied from std::mpsc::test
use alloc::boxed::Box;
use super::*;
use thread;
fn smoke() {
let (tx, rx) = channel::<i32>();
tx.send(1).unwrap();