Simplify template types
This commit is contained in:
parent
7d314b98ae
commit
729b3ba672
3 changed files with 6 additions and 6 deletions
|
|
@ -17,7 +17,7 @@ struct Ref {
|
|||
struct IndexTemplate {
|
||||
base: String,
|
||||
repo_name: String,
|
||||
current: String,
|
||||
current: &'static str,
|
||||
tracked_refs: Vec<Ref>,
|
||||
untracked_refs: Vec<Ref>,
|
||||
}
|
||||
|
|
@ -56,7 +56,7 @@ pub async fn get(
|
|||
Ok(IndexTemplate {
|
||||
base: config.web.base(),
|
||||
repo_name: config.repo.name(),
|
||||
current: "index".to_string(),
|
||||
current: "index",
|
||||
tracked_refs,
|
||||
untracked_refs,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue