Use as_slice instead of as_ref in checkbox example
This commit is contained in:
parent
2d21d0900e
commit
2a00aaa747
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ impl Application for Example {
|
||||||
fn new(_flags: Self::Flags) -> (Self, Command<Message>) {
|
fn new(_flags: Self::Flags) -> (Self, Command<Message>) {
|
||||||
(
|
(
|
||||||
Self::default(),
|
Self::default(),
|
||||||
font::load(include_bytes!("../fonts/icons.ttf").as_ref())
|
font::load(include_bytes!("../fonts/icons.ttf").as_slice())
|
||||||
.map(Message::FontLoaded),
|
.map(Message::FontLoaded),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue