summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
Diffstat (limited to 'core/src')
-rw-r--r--core/src/input_method.rs7
1 files changed, 2 insertions, 5 deletions
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<T = String> {
impl<T> Preedit<T> {
/// Creates a new empty [`Preedit`].
- pub fn new(text_size: Option<impl Into<Pixels>>) -> 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.