From c950c987f2f2fcd4ee916dfe06195587dd6eaba2 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Sun, 22 Oct 2023 12:25:17 +0700 Subject: [PATCH] hardware-lock-elision: Remove redundant import. Each function which uses `asm!` is already importing `core::arch::asm` on its own. --- src/elision.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/elision.rs b/src/elision.rs index 3dbe9387..a4e2e57f 100644 --- a/src/elision.rs +++ b/src/elision.rs @@ -5,11 +5,6 @@ // http://opensource.org/licenses/MIT>, at your option. This file may not be // copied, modified, or distributed except according to those terms. -#[cfg(all( - feature = "hardware-lock-elision", - any(target_arch = "x86", target_arch = "x86_64") -))] -use std::arch::asm; use std::sync::atomic::AtomicUsize; // Extension trait to add lock elision primitives to atomic types