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` --- native/src/widget/helpers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'native/src/widget/helpers.rs') diff --git a/native/src/widget/helpers.rs b/native/src/widget/helpers.rs index 648aab5f..a0d39943 100644 --- a/native/src/widget/helpers.rs +++ b/native/src/widget/helpers.rs @@ -107,7 +107,7 @@ where /// Creates a new [`Text`] widget with the provided content. /// /// [`Text`]: widget::Text -pub fn text(text: impl Into) -> widget::Text +pub fn text(text: impl ToString) -> widget::Text where Renderer: crate::text::Renderer, Renderer::Theme: widget::text::StyleSheet, -- cgit