Change returning value of Network::remove() from <Option<()> to bool.
Rationale: Removing a connected connection could return None in the previous version of remove if just a disconnection happens. The user probably will use .unwrap() on it adding a potential bug. Changing from Option<()> to bool avoid this usage.
Change returning value of
Network::remove()
from<Option<()>
tobool
.Rationale: Removing a connected connection could return
None
in the previous version ofremove
if just a disconnection happens. The user probably will use.unwrap()
on it adding a potential bug. Changing fromOption<()>
tobool
avoid this usage.