examples(calendar): update and fix compile
This commit is contained in:
parent
cdf4eafc9e
commit
f39ad728c9
2 changed files with 7 additions and 5 deletions
|
|
@ -84,7 +84,7 @@ impl cosmic::Application for App {
|
|||
}
|
||||
|
||||
/// Creates a view after each update.
|
||||
fn view(&self) -> Element<Self::Message> {
|
||||
fn view(&self) -> Element<'_, Self::Message> {
|
||||
let mut content = cosmic::widget::column().spacing(12);
|
||||
|
||||
let calendar = cosmic::widget::calendar(
|
||||
|
|
@ -111,7 +111,7 @@ impl App
|
|||
where
|
||||
Self: cosmic::Application,
|
||||
{
|
||||
fn update_title(&mut self) -> Task<Message> {
|
||||
fn update_title(&mut self) -> cosmic::app::Task<Message> {
|
||||
self.set_header_title(String::from("Calendar Demo"));
|
||||
self.set_window_title(String::from("Calendar Demo"))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue