diff --git a/src/tools/jsondocck/src/main.rs b/src/tools/jsondocck/src/main.rs index 376639ced0aa6..6ec292aba6495 100644 --- a/src/tools/jsondocck/src/main.rs +++ b/src/tools/jsondocck/src/main.rs @@ -149,15 +149,17 @@ fn get_commands(template: &str) -> Result, ()> { } } - let args = cap.name("args") - .map_or(Some(vec![]), |m| shlex::split(m.as_str())); + let args = cap.name("args").map_or(Some(vec![]), |m| shlex::split(m.as_str())); let args = match args { Some(args) => args, None => { print_err( - &format!("Invalid arguments to shlex::split: `{}`", cap.name("args").unwrap().as_str()), - lineno + &format!( + "Invalid arguments to shlex::split: `{}`", + cap.name("args").unwrap().as_str() + ), + lineno, ); errors = true; continue;