From a4beb269616d85bb7f33ec317ba3392a47292e0a Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Thu, 2 Dec 2021 11:43:53 +0100 Subject: [PATCH] Fix warning when is_available() is used --- src/detection.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/detection.rs b/src/detection.rs index 3aa33f80..77ec41b3 100644 --- a/src/detection.rs +++ b/src/detection.rs @@ -1,3 +1,4 @@ +#[cfg(not(is_available))] use std::panic::{self, PanicInfo}; use std::sync::atomic::{AtomicUsize, Ordering}; use std::sync::Once;