cargo fmt
This commit is contained in:
+1
-9
@@ -211,10 +211,6 @@ fn handle_effect(bar: &mut Bar, cmd: Cmd) -> Task<Message> {
|
||||
}
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// View — routed per-surface by window ID
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
fn view(bar: &Bar, id: window::Id) -> Element<'_, Message> {
|
||||
if bar.popup_id == Some(id) {
|
||||
popup::view(bar) // popup surface
|
||||
@@ -228,11 +224,7 @@ fn bar_view(bar: &Bar) -> Element<'_, Message> {
|
||||
let mut children: Vec<Element<Message>> = Vec::new();
|
||||
|
||||
for (i, (_, module)) in bar.modules.iter().enumerate() {
|
||||
children.push(
|
||||
module
|
||||
.view(None)
|
||||
.map(|m| Message::Event(Msg::Module(m))),
|
||||
);
|
||||
children.push(module.view(None).map(|m| Message::Event(Msg::Module(m))));
|
||||
if i < bar.modules.len() - 1 {
|
||||
children.push(text("|").size(14).into());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user