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:
parent
1760d76581
commit
bf46193c01
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user