comparison rust/hg-cpython/src/revlog.rs @ 44203:2a24ead003f0

rust-cpython: add panicking version of borrow_mut() and use it The original borrow_mut() is renamed to try_borrow_mut(). Since leak_immutable() no longer incref the borrow count, the caller should know if the underlying value is borrowed or not. No Python world is involved. That's why we can simply use the panicking borrow_mut().
author Yuya Nishihara <yuya@tcha.org>
date Sat, 12 Oct 2019 23:34:05 +0900
parents 451d22174b5f
children 887d0f921b34
comparison
equal deleted inserted replaced
44202:a7f8160cc4e4 44203:2a24ead003f0