diff --git a/src/lib.rs b/src/lib.rs index 74b2171..1ea8d6b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,3 @@ -#![feature(inline_const)] use std::{ marker::PhantomData, mem::{offset_of, MaybeUninit}, @@ -282,14 +281,14 @@ impl ListHead { #[inline(always)] unsafe fn inner(&self) -> &Inner { &*(ptr::from_ref(self) - .byte_offset(const { Self::offset() }) + .byte_offset(Self::offset()) .cast::>()) } #[inline(always)] unsafe fn inner_mut(&mut self) -> &mut Inner { &mut *(ptr::from_mut(self) - .byte_offset(const { Self::offset() }) + .byte_offset(Self::offset()) .cast::>()) }