We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 351b2ac commit c37c421Copy full SHA for c37c421
src/tools/jsondocck/src/main.rs
@@ -149,15 +149,17 @@ fn get_commands(template: &str) -> Result<Vec<Command>, ()> {
149
}
150
151
152
- let args = cap.name("args")
153
- .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()));
154
155
let args = match args {
156
Some(args) => args,
157
None => {
158
print_err(
159
- &format!("Invalid arguments to shlex::split: `{}`", cap.name("args").unwrap().as_str()),
160
- lineno
+ &format!(
+ "Invalid arguments to shlex::split: `{}`",
+ cap.name("args").unwrap().as_str()
161
+ ),
162
+ lineno,
163
);
164
errors = true;
165
continue;
0 commit comments