difftreelog
fix(interner) stacked borrows violation
in: master
1 file changed
crates/jrsonnet-interner/src/inner.rsdiffbeforeafterboth138 }138 }139 fn header_mut(this: &Self) -> *mut InnerHeader {139 fn header_mut(this: &Self) -> *mut InnerHeader {140 // Safety: in `new`, we allocate with correct alignment140 // Safety: in `new`, we allocate with correct alignment141 unsafe { (*this.0.get()).as_mut() }141 unsafe { (*this.0.get()).as_ptr() }142 }142 }143143144 fn clone(this: &Self) -> Self {144 fn clone(this: &Self) -> Self {