From 5c617f311aab81204a6658da1b6fd3b373c2be36 Mon Sep 17 00:00:00 2001 From: Neeraj Jaiswal Date: Tue, 31 Mar 2020 10:56:13 +0000 Subject: [PATCH] Fix queue name in keyboard::add_scancode (#780) --- blog/content/second-edition/posts/12-async-await/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog/content/second-edition/posts/12-async-await/index.md b/blog/content/second-edition/posts/12-async-await/index.md index 3cebb9c5..b74b4ae7 100644 --- a/blog/content/second-edition/posts/12-async-await/index.md +++ b/blog/content/second-edition/posts/12-async-await/index.md @@ -1327,7 +1327,7 @@ To wake the stored `Waker`, we add a call to `WAKER.wake()` in the `add_scancode pub(crate) add_scancode(scancode: u8) { if let Ok(queue) = SCANCODE_QUEUE.try_get() { - if let Err(_) = scancode_queue.push(scancode) { + if let Err(_) = queue.push(scancode) { println!("WARNING: scancode queue full; dropping keyboard input"); } else { WAKER.wake(); // new