diff options
author | 2024-12-10 05:00:33 +0100 | |
---|---|---|
committer | 2024-12-10 05:01:11 +0100 | |
commit | 9bc29e5347c42fb53ac0a99b761cada6bc48a4e8 (patch) | |
tree | e537e03e9f63f7c35a419f8a56ac4c10567b242e /examples/todos | |
parent | 1713ac49f2ae794f78f24c01d6c21625b2c2879c (diff) | |
download | iced-9bc29e5347c42fb53ac0a99b761cada6bc48a4e8.tar.gz iced-9bc29e5347c42fb53ac0a99b761cada6bc48a4e8.tar.bz2 iced-9bc29e5347c42fb53ac0a99b761cada6bc48a4e8.zip |
Add explicit `'static` in `todos` for Rust 1.80
Diffstat (limited to 'examples/todos')
-rw-r--r-- | examples/todos/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/todos/src/main.rs b/examples/todos/src/main.rs index f4b8d786..1d4aa8a4 100644 --- a/examples/todos/src/main.rs +++ b/examples/todos/src/main.rs @@ -48,7 +48,7 @@ enum Message { } impl Todos { - const ICON_FONT: &[u8] = include_bytes!("../fonts/icons.ttf"); + const ICON_FONT: &'static [u8] = include_bytes!("../fonts/icons.ttf"); fn new() -> (Self, Command<Message>) { ( |