We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6897593 commit 212330fCopy full SHA for 212330f
src/lib.rs
@@ -466,8 +466,7 @@ impl ImeClient {
466
// > xcb_xim_open -> open_callback -> xcb_xim_create_ic -> create_ic_callback
467
// The initialization logic will fail if we call xcb_xim_open again
468
// while it's already in progress, so allow 5 seconds for the job to finish.
469
- let duration = now.duration_since(prev_try);
470
- if duration.lt(&Duration::from_secs(5)) {
+ if prev_try.elapsed() < Duration::from_secs(5) {
471
return;
472
}
473
if let Some(logger) = LOGGER.lock().as_mut() {
0 commit comments