From 10ae0cf78317a830693f3c594c7a66f748bc1bba Mon Sep 17 00:00:00 2001 From: Nefo Fortressia Date: Sat, 18 Dec 2021 17:17:15 +0700 Subject: [PATCH] feat: implement Default for EchidnaSidebar EchidnaSidebar doesn't take any parameters, thus allowing Default to be easily implemented on it. --- src/components/sidebar/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/sidebar/mod.rs b/src/components/sidebar/mod.rs index 7aa464a..a7c145b 100644 --- a/src/components/sidebar/mod.rs +++ b/src/components/sidebar/mod.rs @@ -15,3 +15,9 @@ impl EchidnaSidebar { glib::Object::new(&[]).expect("Failed to create 'EchidnaSidebar' component.") } } + +impl Default for EchidnaSidebar { + fn default() -> Self { + Self::new() + } +}