You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed DropGuardMsg::disarm() where calling disarm() on an already-disarmed guard would lose the panic message. The message is now properly preserved across all state transitions.
Fixed compilation error where dbg::NoDrop was unavailable in release mode
Added
Added GuardState enum to represent armed/disarmed state
Added toggle() method to all drop guard types (returns GuardState indicating new state):
DropGuardMsg::toggle() - Toggles between armed and disarmed states
DropGuardEmpty::toggle() - Toggles between armed and disarmed states
DropGuardNoOp::toggle() - Toggles between armed and disarmed states
Added DropGuardMsg::set_msg() method to change the panic message while preserving the armed/disarmed state