cargo fmt

This commit is contained in:
KoffeinFlummi
2019-04-23 01:47:40 +02:00
parent eed218d0c3
commit 35303db5f0
7 changed files with 42 additions and 34 deletions

View File

@@ -76,12 +76,7 @@ impl Layout {
self.focus = Some(s);
}
pub fn view<S: Into<String>, T: IntoBoxedViewExt>(
mut self,
id: S,
view: T,
title: S,
) -> Self {
pub fn view<S: Into<String>, T: IntoBoxedViewExt>(mut self, id: S, view: T, title: S) -> Self {
(&mut self).add_view(id, view, title);
self
}
@@ -120,10 +115,7 @@ impl Layout {
pub fn push_view(&mut self, view: Box<dyn ViewExt>) {
let title = view.title();
let screen = Screen {
title,
view
};
let screen = Screen { title, view };
self.stack.push(screen);
}