mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-29 04:13:24 +00:00
Remove useless #[allow(lint)]
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
b42d596ec4
commit
b415538097
@ -216,7 +216,6 @@ impl<T: 'static + SingleInstructionBitXorAssign<T>> CpuLocalCell<T> {
|
||||
///
|
||||
/// Note that this memory operation will not be elided or reordered by the
|
||||
/// compiler since it is a black-box.
|
||||
#[allow(unused)]
|
||||
pub fn bitxor_assign(&'static self, rhs: T) {
|
||||
let offset = self as *const _ as usize - __cpu_local_start as usize;
|
||||
// SAFETY: The CPU-local object is defined in the `.cpu_local` section,
|
||||
|
@ -114,7 +114,6 @@ pub trait SingleInstructionBitXorAssign<Rhs = Self> {
|
||||
/// # Safety
|
||||
///
|
||||
/// Please refer to the module-level documentation of [`self`].
|
||||
#[allow(unused)]
|
||||
unsafe fn bitxor_assign(offset: *mut Self, rhs: Rhs);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user