clippy fix
This commit is contained in:
@@ -5,12 +5,12 @@
|
|||||||
//! then opens the popup there; the active module renders its content.
|
//! then opens the popup there; the active module renders its content.
|
||||||
|
|
||||||
use iced::advanced::widget as advanced_widget;
|
use iced::advanced::widget as advanced_widget;
|
||||||
use iced::widget::{column, container, mouse_area, text};
|
use iced::widget::{column, container, text};
|
||||||
use iced::{Alignment, Border, Element, Length, Padding, Rectangle, Task};
|
use iced::{Border, Element, Padding, Rectangle, Task};
|
||||||
use iced_layershell::actions::IcedNewPopupSettings;
|
use iced_layershell::actions::IcedNewPopupSettings;
|
||||||
use iced_layershell::reexport::{PopupAnchor, PopupGravity};
|
use iced_layershell::reexport::{PopupAnchor, PopupGravity};
|
||||||
|
|
||||||
use common::{pill, ModuleEffect, PopupSettings};
|
use common::{ModuleEffect, PopupSettings};
|
||||||
|
|
||||||
use crate::msg::popup_open;
|
use crate::msg::popup_open;
|
||||||
use crate::{Bar, Message, Msg};
|
use crate::{Bar, Message, Msg};
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
use common::Wire;
|
use iced::widget::{container, row, space};
|
||||||
use iced::widget::{container, row, space, text};
|
|
||||||
use iced::{window, Alignment, Element, Length, Theme};
|
use iced::{window, Alignment, Element, Length, Theme};
|
||||||
|
|
||||||
use crate::app::Bar;
|
use crate::app::Bar;
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
//! The ticker knows nothing about the app's `Message` type; it produces
|
//! The ticker knows nothing about the app's `Message` type; it produces
|
||||||
//! protocol wires from `common` that core routes to subscribers.
|
//! protocol wires from `common` that core routes to subscribers.
|
||||||
|
|
||||||
use std::collections::HashMap;
|
|
||||||
|
|
||||||
use chrono::{DateTime, Local, Timelike};
|
use chrono::{DateTime, Local, Timelike};
|
||||||
use iced::futures::{channel::mpsc, SinkExt};
|
use iced::futures::{channel::mpsc, SinkExt};
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ impl WeatherService {
|
|||||||
let mut _rx = inbox.take().expect("cant take");
|
let mut _rx = inbox.take().expect("cant take");
|
||||||
|
|
||||||
iced::stream::channel(0, move |mut sender: mpsc::Sender<Wire>| async move {
|
iced::stream::channel(0, move |mut sender: mpsc::Sender<Wire>| async move {
|
||||||
let mut weather = WeatherService::new();
|
let weather = WeatherService::new();
|
||||||
let mut interval = interval(Duration::from_mins(30));
|
let mut interval = interval(Duration::from_mins(30));
|
||||||
tracing::info!(key = key, "weather service started");
|
tracing::info!(key = key, "weather service started");
|
||||||
loop {
|
loop {
|
||||||
|
|||||||
Reference in New Issue
Block a user