From e127392e8a390f0b4074b897cfa5db3db8c6cf0f Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Sat, 2 Jul 2016 19:47:11 -0700 Subject: [PATCH] Add `impl Default for Menubar` To make clippy happy --- src/menubar.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/menubar.rs b/src/menubar.rs index 4df8557..fd52810 100644 --- a/src/menubar.rs +++ b/src/menubar.rs @@ -30,6 +30,12 @@ pub struct Menubar { state: State, } +impl Default for Menubar { + fn default() -> Self { + Self::new() + } +} + impl Menubar { pub fn new() -> Self { Menubar {