remove one indirection

This commit is contained in:
Stephan Dilly 2020-06-22 12:40:54 +02:00
parent 86fafbd47b
commit 6199706a2f
2 changed files with 2 additions and 2 deletions

View file

@ -53,7 +53,7 @@ impl App {
pub fn new(sender: &Sender<AsyncNotification>) -> 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()),

View file

@ -14,7 +14,7 @@ use std::{
};
use tui::style::{Color, Modifier, Style};
pub type SharedTheme = Rc<Box<Theme>>;
pub type SharedTheme = Rc<Theme>;
#[derive(Serialize, Deserialize, Debug)]
pub struct Theme {