From 97ccf3ceb5975b494af5c7b612ad1141e9f4a843 Mon Sep 17 00:00:00 2001 From: Berkus Decker Date: Sat, 2 Mar 2019 19:14:39 +0200 Subject: [PATCH] Impl Default for Mailbox * As suggested by clippy. --- src/platform/mailbox.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/platform/mailbox.rs b/src/platform/mailbox.rs index 0d42e44..1316ba6 100644 --- a/src/platform/mailbox.rs +++ b/src/platform/mailbox.rs @@ -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] }