From cf851e133ad6aaedaf07b58c68e7c41d41ee151a Mon Sep 17 00:00:00 2001 From: rhysd Date: Thu, 6 Feb 2025 09:57:01 +0900 Subject: Do not pass text size to `Preedit::new` --- core/src/input_method.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'core/src') diff --git a/core/src/input_method.rs b/core/src/input_method.rs index ab00b5af..9c83b083 100644 --- a/core/src/input_method.rs +++ b/core/src/input_method.rs @@ -40,14 +40,11 @@ pub struct Preedit { impl Preedit { /// Creates a new empty [`Preedit`]. - pub fn new(text_size: Option>) -> Self + pub fn new() -> Self where T: Default, { - Self { - text_size: text_size.map(Into::into), - ..Default::default() - } + Self::default() } /// Turns a [`Preedit`] into its owned version. -- cgit