Impl Default for Mailbox

* As suggested by clippy.
This commit is contained in:
Berkus Decker 2019-03-02 19:14:39 +02:00
parent 593544a6ec
commit 97ccf3ceb5
1 changed files with 6 additions and 0 deletions

View File

@ -277,6 +277,12 @@ impl core::fmt::Display for Mailbox {
}
}
impl Default for Mailbox {
fn default() -> Self {
Self::new()
}
}
impl Mailbox {
pub fn new() -> Mailbox {
Mailbox { buffer: [0; 36] }