summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-07-27 06:56:09 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-07-27 06:56:09 +0200
commita1c5f8839dd972a016e4fd6af3a898c1d8f2684f (patch)
tree0ea76f642a6d7fa6abc98f081faa5db572ec2759 /src/lib.rs
parentff2519b1d43d481987351a83b6dd7237524c21f0 (diff)
downloadiced-a1c5f8839dd972a016e4fd6af3a898c1d8f2684f.tar.gz
iced-a1c5f8839dd972a016e4fd6af3a898c1d8f2684f.tar.bz2
iced-a1c5f8839dd972a016e4fd6af3a898c1d8f2684f.zip
Use `ToString` for `Text::new` instead of `Into<String>`
Diffstat (limited to '')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 96ee4eb5..38ba48be 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -94,7 +94,7 @@
//! button("+").on_press(Message::IncrementPressed),
//!
//! // We show the value of the counter here
-//! text(self.value.to_string()).size(50),
+//! text(self.value).size(50),
//!
//! // The decrement button. We tell it to produce a
//! button("-").on_press(Message::DecrementPressed),