From 6199706a2fdb2692a16d372bc65a88bcaca45101 Mon Sep 17 00:00:00 2001 From: Stephan Dilly Date: Mon, 22 Jun 2020 12:40:54 +0200 Subject: [PATCH] remove one indirection --- src/app.rs | 2 +- src/ui/style.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app.rs b/src/app.rs index 3ec920bf..d22ad75c 100644 --- a/src/app.rs +++ b/src/app.rs @@ -53,7 +53,7 @@ impl App { pub fn new(sender: &Sender) -> Self { let queue = Queue::default(); - let theme = Rc::new(Box::new(Theme::init())); + let theme = Rc::new(Theme::init()); Self { reset: ResetComponent::new(queue.clone(), theme.clone()), diff --git a/src/ui/style.rs b/src/ui/style.rs index 8e9f14e5..686cd3af 100644 --- a/src/ui/style.rs +++ b/src/ui/style.rs @@ -14,7 +14,7 @@ use std::{ }; use tui::style::{Color, Modifier, Style}; -pub type SharedTheme = Rc>; +pub type SharedTheme = Rc; #[derive(Serialize, Deserialize, Debug)] pub struct Theme {