fix typo in log::error

This commit is contained in:
oneshinyboi 2026-03-20 18:15:13 +00:00
parent f7be9ca5ef
commit 9651152b8b
No known key found for this signature in database
GPG Key ID: A494E206A095F0C0
2 changed files with 3 additions and 3 deletions

View File

@ -135,7 +135,7 @@ pub(self) fn init_swipe_type_manager(state: &mut KeyboardState) {
state.swipe_candidate_receiver = Some(receiver);
},
Err(e) => {
log::error!("Error occured while trying to load swipe engine: {:?}", e);
log::error!("Error occurred while trying to load swipe engine: {}", e);
}
};
}

View File

@ -104,9 +104,9 @@ impl SwipeTypingManager {
match swipe_engine.predict(swipe, &last_word) {
Ok(candidates) => {
let words: Vec<String> = candidates
.iter()
.into_iter()
.take(PREDICTION_SUGGESTION_COUNT)
.map(|c| c.word.clone())
.map(|c| c.word)
.collect();
let _ = worker_candidate_sender.send(Some(words));