summaryrefslogtreecommitdiffstats
path: root/examples/tour/src/main.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-04-11 05:13:56 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-04-11 05:13:56 +0200
commit0e2fc99eb864800d2d1522c015054d84cad078f4 (patch)
tree704cbd64852a31055cbb8b873db5c8a457107f13 /examples/tour/src/main.rs
parent898307e9ac8e11de275d7d4d58b93a6f24a1e800 (diff)
downloadiced-0e2fc99eb864800d2d1522c015054d84cad078f4.tar.gz
iced-0e2fc99eb864800d2d1522c015054d84cad078f4.tar.bz2
iced-0e2fc99eb864800d2d1522c015054d84cad078f4.zip
Use `f32` for `Icon::size` and remove unnecessary conversions
Diffstat (limited to '')
-rw-r--r--examples/tour/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/tour/src/main.rs b/examples/tour/src/main.rs
index 5edee850..6a1380d7 100644
--- a/examples/tour/src/main.rs
+++ b/examples/tour/src/main.rs
@@ -583,7 +583,7 @@ impl<'a> Step {
text_input = text_input.icon(text_input::Icon {
font: ICON_FONT,
code_point: '\u{e900}',
- size: Some(35),
+ size: Some(35.0),
position: text_input::IconPosition::Right,
});
}