From 5acdbdb707d01723223bb85128637419ce44489a Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Sat, 28 Jan 2023 00:18:11 +0000 Subject: [PATCH] fix(interner): stacked borrows violation --- --- a/crates/jrsonnet-interner/src/inner.rs +++ b/crates/jrsonnet-interner/src/inner.rs @@ -138,7 +138,7 @@ } fn header_mut(this: &Self) -> *mut InnerHeader { // Safety: in `new`, we allocate with correct alignment - unsafe { (*this.0.get()).as_mut() } + unsafe { (*this.0.get()).as_ptr() } } fn clone(this: &Self) -> Self { -- gitstuff