summaryrefslogtreecommitdiffstats
path: root/native/src/widget/helpers.rs
diff options
context:
space:
mode:
Diffstat (limited to 'native/src/widget/helpers.rs')
-rw-r--r--native/src/widget/helpers.rs2
1 files changed, 1 insertions, 1 deletions
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<Renderer>(text: impl Into<String>) -> widget::Text<Renderer>
+pub fn text<Renderer>(text: impl ToString) -> widget::Text<Renderer>
where
Renderer: crate::text::Renderer,
Renderer::Theme: widget::text::StyleSheet,