pub fn find_matches(
    content: &str,
    pattern: &str,
    writer: impl Write
) -> Result<()>