Fix some nightly clippy warnings (#329)

This commit is contained in:
JT
2021-11-13 13:42:13 +13:00
committed by GitHub
parent db2bca56c9
commit 14a2918bba
5 changed files with 12 additions and 34 deletions

View File

@ -4,6 +4,7 @@ use std::collections::HashMap;
const COMMANDS_DOCS_DIR: &str = "docs/commands";
#[derive(Default)]
pub struct DocumentationConfig {
no_subcommands: bool,
//FIXME: add back in color support
@ -12,16 +13,6 @@ pub struct DocumentationConfig {
brief: bool,
}
impl Default for DocumentationConfig {
fn default() -> Self {
DocumentationConfig {
no_subcommands: false,
no_color: false,
brief: false,
}
}
}
fn generate_doc(name: &str, engine_state: &EngineState) -> (Vec<String>, Vec<Value>) {
let mut cols = vec![];
let mut vals = vec![];