Skip to content

Commit 974bd91

Browse files
committed
docs: add a comment clarifying weird choice
1 parent ebfc595 commit 974bd91

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/app/sub.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,7 @@ where
160160
if !only_one_arg {
161161
*data_tree.name_mut() = OsStringDisplay::os_string_from("(total)");
162162
if let Some(map) = &mut leaf_color_map {
163-
let total = OsString::from("(total)");
164-
let empty = OsString::from("");
163+
// NOTE: cannot use for-in because we are modifying the keys
165164
*map = map
166165
.drain()
167166
.map(|(mut key, color)| {

0 commit comments

Comments
 (0)