Modified elements to take static str (will change to &str)

This commit is contained in:
2025-10-06 16:45:07 +02:00
parent cba44c144d
commit 94b68982f6
2 changed files with 19 additions and 19 deletions

View File

@@ -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![],