Use as_slice instead of as_ref in checkbox example

This commit is contained in:
Héctor Ramón Jiménez 2023-05-25 23:48:42 +02:00
parent 2d21d0900e
commit 2a00aaa747
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -31,7 +31,7 @@ impl Application for Example {
fn new(_flags: Self::Flags) -> (Self, Command<Message>) {
(
Self::default(),
font::load(include_bytes!("../fonts/icons.ttf").as_ref())
font::load(include_bytes!("../fonts/icons.ttf").as_slice())
.map(Message::FontLoaded),
)
}