Rename template struct for consistency

This commit is contained in:
Joscha 2023-08-06 19:33:16 +02:00
parent 1eeee43f2c
commit 2c0a496897

View file

@ -29,7 +29,7 @@ impl Commit {
#[derive(Template)] #[derive(Template)]
#[template(path = "commit_hash.html")] #[template(path = "commit_hash.html")]
struct CommitIdTemplate { struct CommitHashTemplate {
base: Base, base: Base,
hash: String, hash: String,
author: String, author: String,
@ -97,7 +97,7 @@ pub async fn get(
.try_collect::<Vec<_>>() .try_collect::<Vec<_>>()
.await?; .await?;
Ok(CommitIdTemplate { Ok(CommitHashTemplate {
base: Base::new(config, Tab::Commit), base: Base::new(config, Tab::Commit),
hash: commit.hash, hash: commit.hash,
author: commit.author, author: commit.author,