summaryrefslogtreecommitdiffstats
path: root/examples/todos/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2022-09-21 21:11:54 +0200
committerLibravatar GitHub <noreply@github.com>2022-09-21 21:11:54 +0200
commit7420ea7a6b80663cad178c1238c5b756232a087f (patch)
treeeaf073565e9c02eae8e013a5c59c26558aa13ba6 /examples/todos/src
parentf15bc3ca34cadb114f678cb2430209c474149b45 (diff)
parentce3b89639d84a279bbc0f4dac912a136488d0bec (diff)
downloadiced-7420ea7a6b80663cad178c1238c5b756232a087f.tar.gz
iced-7420ea7a6b80663cad178c1238c5b756232a087f.tar.bz2
iced-7420ea7a6b80663cad178c1238c5b756232a087f.zip
Merge pull request #1107 from RamType0/TextContentByCow
Text content by cow
Diffstat (limited to 'examples/todos/src')
-rw-r--r--examples/todos/src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/todos/src/main.rs b/examples/todos/src/main.rs
index bb00aac6..bddc0e71 100644
--- a/examples/todos/src/main.rs
+++ b/examples/todos/src/main.rs
@@ -469,7 +469,7 @@ const ICONS: Font = Font::External {
bytes: include_bytes!("../../todos/fonts/icons.ttf"),
};
-fn icon(unicode: char) -> Text {
+fn icon(unicode: char) -> Text<'static> {
text(unicode.to_string())
.font(ICONS)
.width(Length::Units(20))
@@ -477,11 +477,11 @@ fn icon(unicode: char) -> Text {
.size(20)
}
-fn edit_icon() -> Text {
+fn edit_icon() -> Text<'static> {
icon('\u{F303}')
}
-fn delete_icon() -> Text {
+fn delete_icon() -> Text<'static> {
icon('\u{F1F8}')
}