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: rules.rs
    path of file: ./repos/high-assurance-rust/internal_tools/har_analyze/src
    
    the code of the file until where you have to start completion: //! Rules the linter can apply to section data.

use crate::LintError;
use std::{fmt, path::PathBuf};

/// The signature for a rule, addable to linter builder
#[allow(clippy::type_complexity)
    
pub fn rule_no_draft_path<'a>(path: &'a PathBuf, lines: &[String]) -> Result<(), LintError<'a>> {
    for (idx, line) in lines.iter().enumerate() {
        if line.contains("/book-draft/") {
            return Err(LintError::Failed {
                path,
                line_number: idx.into(),
                line: line.clone(),
                reason: "Contains book draft path".to_string(),
            });
        }
    }

    Ok(())
}