Skip to content

Commit 573b652

Browse files
committed
remove useless alloc
on rust reference book this reduces total allocs from 490mb to 474mb: ==23272== Total: 490,538,699 bytes in 1,760,117 blocks ==23272== At t-gmax: 13,872,954 bytes in 4,655 blocks ==23272== At t-end: 488,516 bytes in 884 blocks ==23272== Reads: 830,509,060 bytes ==23272== Writes: 522,290,614 bytes to ==40876== Total: 474,156,323 bytes in 1,521,025 blocks ==40876== At t-gmax: 13,872,954 bytes in 4,655 blocks ==40876== At t-end: 488,516 bytes in 884 blocks ==40876== Reads: 820,933,434 bytes ==40876== Writes: 514,838,350 bytes
1 parent 59d3717 commit 573b652

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderer/html_handlebars/helpers/navigation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ fn find_chapter(
103103
}
104104
}
105105

106-
previous = Some(item.clone());
106+
previous = Some(item);
107107
}
108108
_ => continue,
109109
}

0 commit comments

Comments
 (0)