From 325762d4d8b494f4a90a2581deae701d3a453398 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Thu, 4 Mar 2021 10:19:41 -0800 Subject: [PATCH] tool: Fix building without `std` feature --- tool/src/access/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tool/src/access/mod.rs b/tool/src/access/mod.rs index 71c1404..bd3c062 100644 --- a/tool/src/access/mod.rs +++ b/tool/src/access/mod.rs @@ -3,6 +3,9 @@ use crate::Error; use downcast_rs::Downcast; +#[cfg(not(feature = "std"))] +use alloc::boxed::Box; + #[cfg(feature = "hidapi")] pub use self::hid::AccessHid; #[cfg(feature = "hidapi")]