Fixed stackoverflow error

This commit is contained in:
Fayeed Pawaskar
2023-07-24 12:19:41 +05:30
parent 0e17d6acd7
commit 1dcc1ca524

View File

@@ -252,26 +252,6 @@ impl<T: ?Sized + ArenaAllocated> TypedArenaPtr<T> {
self.0.as_ptr()
}
#[inline]
pub fn to_i64(&self) -> Option<i64> {
self.to_i64()
}
#[inline]
pub fn to_u32(&self) -> Option<u32> {
self.to_u32()
}
#[inline]
pub fn to_usize(&self) -> Option<usize> {
self.to_usize()
}
#[inline]
pub fn to_isize(&self) -> Option<isize> {
self.to_isize()
}
#[inline]
pub fn header_ptr(&self) -> *const ArenaHeader {
let mut ptr = self.as_ptr() as *const u8 as usize;