Optimize wasm bindgen asset with manganis (#3531)

This commit is contained in:
Evan Almloff authored and GitHub committed 2025-01-21 15:14:45 -08:00
1 parent d8850c7666
commit 13dcd80fbf
29 files changed
+933 -1089

No files matched your search

+2 -2
View File
@@ -320,7 +320,7 @@ impl History for LiveviewHistory {
visited_indices
.iter()
.position(|&rhs| timeline.current_index == rhs)
.map_or(false, |index| {
.is_some_and(|index| {
index > 0 && visited_indices[index - 1] == timeline.current_index - 1
})
}
@@ -332,7 +332,7 @@ impl History for LiveviewHistory {
visited_indices
.iter()
.rposition(|&rhs| timeline.current_index == rhs)
.map_or(false, |index| {
.is_some_and(|index| {
index < visited_indices.len() - 1
&& visited_indices[index + 1] == timeline.current_index + 1
})