You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: messages.rs
    path of file: ./repos/zola/src
    
    the code of the file until where you have to start completion: use libs::time::Duration;
use std::convert::TryInto;
use std::time::Instant;

use errors::Error;
use site::Site;

/// Display in the co
    
pub fn warn_about_ignored_pages(site: &Site) {
    let library = site.library.read().unwrap();
    let ignored_pages: Vec<_> = library
        .sections
        .values()
        .flat_map(|s| s.ignored_pages.iter().map(|k| library.pages[k].file.path.clone()))
        .collect();

    if !ignored_pages.is_empty() {
        console::warn(&format!(
            "{} page(s) ignored (missing date or weight in a sorted section):",
            ignored_pages.len()
        ));
        for path in ignored_pages {
            console::warn(&format!("- {}", path.display()));
        }
    }
}