summaryrefslogtreecommitdiffstats
path: root/examples/checkbox
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-05-25 23:48:42 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-05-25 23:48:42 +0200
commit2a00aaa7477f3f46937bb568be2796b90fa27e12 (patch)
tree4438d8e8b6cd4e2ba4022cc82dd57d23a4fc820f /examples/checkbox
parent2d21d0900e9fcabfc01a7deaaab5b4fd4b8573e8 (diff)
downloadiced-2a00aaa7477f3f46937bb568be2796b90fa27e12.tar.gz
iced-2a00aaa7477f3f46937bb568be2796b90fa27e12.tar.bz2
iced-2a00aaa7477f3f46937bb568be2796b90fa27e12.zip
Use `as_slice` instead of `as_ref` in `checkbox` example
Diffstat (limited to 'examples/checkbox')
-rw-r--r--examples/checkbox/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/checkbox/src/main.rs b/examples/checkbox/src/main.rs
index ef61a974..ef1a054d 100644
--- a/examples/checkbox/src/main.rs
+++ b/examples/checkbox/src/main.rs
@@ -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),
)
}