Modified elements to take static str (will change to &str)
This commit is contained in:
@@ -5,7 +5,7 @@ pub(crate) trait Render {
|
||||
}
|
||||
|
||||
pub(crate) struct Page {
|
||||
title: String,
|
||||
title: &'static str,
|
||||
head: Vec<Box<dyn Render>>,
|
||||
body: Vec<Box<dyn Render>>,
|
||||
}
|
||||
@@ -45,7 +45,7 @@ impl Render for Page {
|
||||
}
|
||||
|
||||
impl Page {
|
||||
pub(crate) fn new(title: String) -> Self {
|
||||
pub(crate) fn new(title: &'static str) -> Self {
|
||||
Page {
|
||||
title,
|
||||
head: vec![],
|
||||
|
||||
Reference in New Issue
Block a user