mirror of
https://github.com/gitui-org/gitui
synced 2026-05-24 09:28:21 +00:00
remove one indirection
This commit is contained in:
parent
86fafbd47b
commit
6199706a2f
2 changed files with 2 additions and 2 deletions
|
|
@ -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()),
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue