Skip to content

Commit

Permalink
Add explicit 'static in todos for Rust 1.80
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Dec 10, 2024
1 parent 1713ac4 commit 9bc29e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/todos/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>) {
(
Expand Down

0 comments on commit 9bc29e5

Please sign in to comment.