Fix Message type to Never in UpdateFn for ()
This commit is contained in:
parent
92d08bcc10
commit
31fcaccf7d
4 changed files with 11 additions and 9 deletions
|
|
@ -169,15 +169,15 @@ mod rainbow {
|
|||
}
|
||||
}
|
||||
|
||||
use iced::Element;
|
||||
use iced::widget::{center_x, center_y, column, scrollable};
|
||||
use iced::{Element, Never};
|
||||
use rainbow::rainbow;
|
||||
|
||||
pub fn main() -> iced::Result {
|
||||
iced::run((), view)
|
||||
}
|
||||
|
||||
fn view(_state: &()) -> Element<'_, ()> {
|
||||
fn view(_state: &()) -> Element<'_, Never> {
|
||||
let content = column![
|
||||
rainbow(),
|
||||
"In this example we draw a custom widget Rainbow, using \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue