Simplify template types
This commit is contained in:
parent
7d314b98ae
commit
729b3ba672
3 changed files with 6 additions and 6 deletions
|
|
@ -8,13 +8,13 @@ use crate::{config::Config, somehow};
|
|||
struct CommitTemplate {
|
||||
base: String,
|
||||
repo_name: String,
|
||||
current: String,
|
||||
current: &'static str,
|
||||
}
|
||||
|
||||
pub async fn get(State(config): State<&'static Config>) -> somehow::Result<impl IntoResponse> {
|
||||
Ok(CommitTemplate {
|
||||
base: config.web.base(),
|
||||
repo_name: config.repo.name(),
|
||||
current: "commit".to_string(),
|
||||
current: "commit",
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue