We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d4e9bc commit 41a7432Copy full SHA for 41a7432
src/page.rs
@@ -296,7 +296,7 @@ impl<'p> Page<'p> {
296
/// Appropriately sort the given vector of pages and create all the directories where
297
/// they will be rendered to.
298
#[inline]
299
- pub fn prepare(mut pages: Vec<Self>, config: &Config) -> Result<Vec<Self>, io::Error> {
+ pub fn prepare(mut pages: Vec<Self>, config: &Config) -> Result<Box<[Self]>, io::Error> {
300
let output_dir = Path::new(config.output_dir.as_ref());
301
for i in 0..pages.len() {
302
let page = &pages[i];
@@ -343,7 +343,7 @@ impl<'p> Page<'p> {
343
pages[i].id = i;
344
}
345
346
- Ok(pages)
+ Ok(pages.into())
347
348
349
/// Get a reference of the page, in context of its subpages and subsections.
0 commit comments