From a1c5f8839dd972a016e4fd6af3a898c1d8f2684f Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 27 Jul 2022 06:56:09 +0200 Subject: Use `ToString` for `Text::new` instead of `Into` --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib.rs') 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), -- cgit