diff options
author | 2025-02-21 01:28:47 +0100 | |
---|---|---|
committer | 2025-02-21 01:37:14 +0100 | |
commit | 91af1c5ed65d75d9da62d29254460b5ed79f96eb (patch) | |
tree | 4b05400d50e6a94e4f7049945c01fec2beffb2b2 /examples/markdown | |
parent | 9ceb467e6e12129b42d67a4a1ff3cb21bc7daadd (diff) | |
download | iced-91af1c5ed65d75d9da62d29254460b5ed79f96eb.tar.gz iced-91af1c5ed65d75d9da62d29254460b5ed79f96eb.tar.bz2 iced-91af1c5ed65d75d9da62d29254460b5ed79f96eb.zip |
Update all `examples` to Rust 2024
Diffstat (limited to 'examples/markdown')
-rw-r--r-- | examples/markdown/Cargo.toml | 2 | ||||
-rw-r--r-- | examples/markdown/src/icon.rs | 2 | ||||
-rw-r--r-- | examples/markdown/src/main.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/markdown/Cargo.toml b/examples/markdown/Cargo.toml index 7af1741b..1b582e80 100644 --- a/examples/markdown/Cargo.toml +++ b/examples/markdown/Cargo.toml @@ -2,7 +2,7 @@ name = "markdown" version = "0.1.0" authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"] -edition = "2021" +edition = "2024" publish = false [dependencies] diff --git a/examples/markdown/src/icon.rs b/examples/markdown/src/icon.rs index cfe32541..eaae7587 100644 --- a/examples/markdown/src/icon.rs +++ b/examples/markdown/src/icon.rs @@ -1,8 +1,8 @@ // Generated automatically by iced_fontello at build time. // Do not edit manually. Source: ../fonts/markdown-icons.toml // dcd2f0c969d603e2ee9237a4b70fa86b1a6e84d86f4689046d8fdd10440b06b9 -use iced::widget::{text, Text}; use iced::Font; +use iced::widget::{Text, text}; pub const FONT: &[u8] = include_bytes!("../fonts/markdown-icons.ttf"); diff --git a/examples/markdown/src/main.rs b/examples/markdown/src/main.rs index c6360359..38a56c6b 100644 --- a/examples/markdown/src/main.rs +++ b/examples/markdown/src/main.rs @@ -3,7 +3,7 @@ mod icon; use iced::animation; use iced::clipboard; use iced::highlighter; -use iced::time::{self, milliseconds, Instant}; +use iced::time::{self, Instant, milliseconds}; use iced::widget::{ self, button, center_x, container, horizontal_space, hover, image, markdown, pop, right, row, scrollable, text_editor, toggler, |