From 9bc29e5347c42fb53ac0a99b761cada6bc48a4e8 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 10 Dec 2024 05:00:33 +0100 Subject: Add explicit `'static` in `todos` for Rust 1.80 --- examples/todos/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/todos/src') 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) { ( -- cgit