mirror of https://github.com/wayvr-org/wayvr.git
fix typo in log::error
This commit is contained in:
parent
f7be9ca5ef
commit
9651152b8b
|
|
@ -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);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in New Issue