Closed khoover closed 1 year ago
Some of those big nested control blocks could be simplified with match arm guards and if let. Also replaced .remove()/.insert() with the .entry() API for HashMaps, hopefully it avoids a bunch of "remove X then insert X back" repetitions.
if let
.remove()/.insert()
.entry()
Some of those big nested control blocks could be simplified with match arm guards and
if let
. Also replaced.remove()/.insert()
with the.entry()
API for HashMaps, hopefully it avoids a bunch of "remove X then insert X back" repetitions.