Skip to content

Commit 22de827

Browse files
zahidkizmazsyphar
authored andcommittedOct 25, 2024·
perf: do not call rebuild_queue.len() multiple times in the template
1 parent ee16ddf commit 22de827

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎templates/releases/build_queue.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@
9898
benefit from new features in rustdoc.
9999
</p>
100100
{%- if !expand_rebuild_queue -%}
101-
<p>There are currently {{ rebuild_queue.len() }} crate{{ rebuild_queue.len()|pluralize }} in the rebuild queue.</p>
101+
{% let rebuild_queue_len = rebuild_queue.len() %}
102+
<p>There are currently {{ rebuild_queue_len }} crate{{ rebuild_queue_len|pluralize }} in the rebuild queue.</p>
102103
<p><a href="?expand=1">Show</a></p>
103104
{%- endif -%}
104105
</div>

0 commit comments

Comments
 (0)
Please sign in to comment.