Add intermediate lifetime.

This commit is contained in:
Tom Alexander
2023-10-29 12:15:07 -04:00
parent 52ca300de3
commit cb7c28c1ae
59 changed files with 140 additions and 140 deletions

View File

@@ -18,10 +18,10 @@ pub(crate) struct BlogPostPage {
}
impl BlogPostPage {
pub(crate) async fn new<'parse, P: Into<PathBuf>>(
pub(crate) async fn new<'intermediate, 'parse, P: Into<PathBuf>>(
path: P,
registry: &mut Registry<'parse>,
document: &organic::types::Document<'parse>,
registry: &mut Registry<'intermediate, 'parse>,
document: &'intermediate organic::types::Document<'parse>,
) -> Result<BlogPostPage, CustomError> {
let path = path.into();
let mut children = Vec::new();