examples(calendar): update and fix compile

This commit is contained in:
Michael Aaron Murphy 2025-12-05 17:29:11 +01:00
parent cdf4eafc9e
commit f39ad728c9
No known key found for this signature in database
GPG key ID: B2732D4240C9212C
2 changed files with 7 additions and 5 deletions

View file

@ -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"))
}