From f2915efc8c0af4d4c589a37c323332e93925d156 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Fri, 6 Sep 2024 16:53:28 +0200 Subject: [PATCH] Remove unused default values for `latest_version` and `target` --- templates/crate/build_details.html | 2 -- templates/crate/builds.html | 2 -- templates/crate/features.html | 2 -- templates/crate/source.html | 2 -- 4 files changed, 8 deletions(-) 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" -%}