aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2019-09-26 08:54:03 -0400
committerBrian Cully <bjc@kublai.com>2019-09-26 08:54:03 -0400
commita546201a869c7103eab3b6870b3340ea73389740 (patch)
tree198c9a98433aee139c261a730a37d27d23750bac /src/lib.rs
parentea196093f22c8d5d5f2d6bebf39496ccc4b6a1c8 (diff)
downloadbootkbd-a546201a869c7103eab3b6870b3340ea73389740.tar.gz
bootkbd-a546201a869c7103eab3b6870b3340ea73389740.zip
Add a TODO note about possibly uneccesary device descriptor fetch.
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 50b481d..397d526 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -166,6 +166,8 @@ impl Device {
}
DeviceState::WaitForSettle(until) => {
+ // TODO: This seems unnecessary. We're not using the
+ // device descriptor at all.
if millis > until {
let mut dev_desc: MaybeUninit<DeviceDescriptor> = MaybeUninit::uninit();
let buf = unsafe { to_slice_mut(&mut dev_desc) };