From b8a35530afcc309a69a62c5e0937cbcf2605cbcc Mon Sep 17 00:00:00 2001 From: pentamassiv Date: Tue, 13 Oct 2020 22:24:54 +0200 Subject: [PATCH] Can preedit_string get removed? --- src/imservice.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/imservice.rs b/src/imservice.rs index a4546d94..79a1e992 100644 --- a/src/imservice.rs +++ b/src/imservice.rs @@ -54,7 +54,7 @@ pub mod c { im: *const InputMethod) { let imservice = check_imservice(imservice, im).unwrap(); - imservice.preedit_string = String::new(); + imservice.preedit_string = String::new(); // I don't think this is ever used. Remove it? imservice.pending = IMProtocolState { active: true, ..IMProtocolState::default() @@ -344,7 +344,7 @@ pub struct IMService { pending: IMProtocolState, current: IMProtocolState, // turn current into an idiomatic representation? - preedit_string: String, + preedit_string: String, // I don't think this is ever used. Remove it? serial: Wrapping, } @@ -366,7 +366,7 @@ impl IMService { state_manager, pending: IMProtocolState::default(), current: IMProtocolState::default(), - preedit_string: String::new(), + preedit_string: String::new(), // I don't think this is ever used. Remove it? serial: Wrapping(0u32), }); unsafe {