git.delta.rocks / jrsonnet / refs/commits / ae63b405fd55

difftreelog

fix(evaluator) checked LocalKey load

Yaroslav Bolyukin2021-01-28parent: #3b19e49.patch.diff
in: master

1 file changed

modifiedcrates/jrsonnet-interner/src/lib.rsdiffbeforeafterboth
42 fn drop(&mut self) {42 fn drop(&mut self) {
43 // First reference - current object, second - POOL43 // First reference - current object, second - POOL
44 if Rc::strong_count(&self.0) <= 2 {44 if Rc::strong_count(&self.0) <= 2 {
45 STR_POOL.with(|pool| pool.borrow_mut().remove(&self.0));45 let _result = STR_POOL.try_with(|pool| pool.borrow_mut().remove(&self.0));
46 }46 }
47 }47 }
48}48}