Skip to content
Snippets Groups Projects
Commit a264a288 authored by Yaroslav Dynnikov's avatar Yaroslav Dynnikov Committed by Yaroslav Dynnikov
Browse files

chore: satisfy clippy

"You should consider adding a `Default` implementation for `Mailbox<T>`"
parent 7f6c8ec0
No related branches found
No related tags found
1 merge request!460Enable doctests
......@@ -56,8 +56,10 @@ use std::time::Duration;
/// assert!(mailbox.try_receive_all().is_empty());
/// ```
#[derive(Default)]
pub struct Mailbox<T>(Rc<Inner<T>>);
#[derive(Default)]
struct Inner<T> {
cond: Rc<fiber::Cond>,
content: RefCell<Vec<T>>,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment