git.delta.rocks / jrsonnet / refs/commits / 5acdbdb707d0

difftreelog

fix(interner) stacked borrows violation

Yaroslav Bolyukin2023-01-28parent: #45d6bc3.patch.diff
in: master

1 file changed

modifiedcrates/jrsonnet-interner/src/inner.rsdiffbeforeafterboth
138 }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 alignment
141 unsafe { (*this.0.get()).as_mut() }141 unsafe { (*this.0.get()).as_ptr() }
142 }142 }
143143
144 fn clone(this: &Self) -> Self {144 fn clone(this: &Self) -> Self {