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 {