(latest: SharedNode, file_offset: FileOffset)
| 36 | |
| 37 | impl LatestNode { |
| 38 | pub fn new(latest: SharedNode, file_offset: FileOffset) -> SharedLatestNode { |
| 39 | Box::into_raw(Box::new(Self { |
| 40 | latest, |
| 41 | file_offset, |
| 42 | })) |
| 43 | } |
| 44 | |
| 45 | #[allow(invalid_reference_casting)] |
| 46 | #[allow(clippy::not_unsafe_ptr_arg_deref)] |