diff --git a/templates/crate/build_details.html b/templates/crate/build_details.html
index 3ff9eb0a9..c27ab74fe 100644
--- a/templates/crate/build_details.html
+++ b/templates/crate/build_details.html
@@ -10,8 +10,6 @@
{%- endblock body_classes -%}
{%- block topbar -%}
- {%- set latest_version = "" -%}
- {%- set target = "" -%}
{%- set inner_path = metadata.target_name_url() -%}
{%- set is_latest_version = true -%}
{%- set is_prerelease = false -%}
diff --git a/templates/crate/builds.html b/templates/crate/builds.html
index 4e16da656..7c8c7c99e 100644
--- a/templates/crate/builds.html
+++ b/templates/crate/builds.html
@@ -14,8 +14,6 @@
{%- endblock body_classes -%}
{%- block topbar -%}
- {%- set latest_version = "" -%}
- {%- set target = "" -%}
{%- set inner_path = metadata.target_name_url() -%}
{%- set is_latest_version = true -%}
{%- include "rustdoc/topbar.html" -%}
diff --git a/templates/crate/features.html b/templates/crate/features.html
index 5f772226b..7bb97b974 100644
--- a/templates/crate/features.html
+++ b/templates/crate/features.html
@@ -10,8 +10,6 @@
{%- endblock -%}
{%- block topbar -%}
- {%- set latest_version = "" -%}
- {%- set target = "" -%}
{%- set inner_path = metadata.target_name_url() -%}
{%- set is_latest_version = true -%}
{%- include "rustdoc/topbar.html" -%}
diff --git a/templates/crate/source.html b/templates/crate/source.html
index ced7c3543..6e8567d56 100644
--- a/templates/crate/source.html
+++ b/templates/crate/source.html
@@ -6,8 +6,6 @@
{%- endblock title -%}
{%- block topbar -%}
- {%- set latest_version = "" -%}
- {%- set target = "" -%}
{%- set inner_path = metadata.target_name_url() -%}
{%- set is_latest_version = true -%}
{%- include "rustdoc/topbar.html" -%}