diff options
| author | 2025-02-06 09:57:01 +0900 | |
|---|---|---|
| committer | 2025-02-06 09:57:01 +0900 | |
| commit | cf851e133ad6aaedaf07b58c68e7c41d41ee151a (patch) | |
| tree | f46a9317e23ebe32018dad80d0c2269e43515cca /core | |
| parent | fcdf53afdee9cd12bf2e01c5f6e572859b9a3f96 (diff) | |
| download | iced-cf851e133ad6aaedaf07b58c68e7c41d41ee151a.tar.gz iced-cf851e133ad6aaedaf07b58c68e7c41d41ee151a.tar.bz2 iced-cf851e133ad6aaedaf07b58c68e7c41d41ee151a.zip | |
Do not pass text size to `Preedit::new`
Diffstat (limited to '')
| -rw-r--r-- | core/src/input_method.rs | 7 | 
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. | 
