Skip to content
Myr

fix format

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by curious-rabbit · committed by curious-rabbit · parent 7d18db2 · Browse files · 1 file+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−4 removed

  • other:+4 added−4 removed

1 file+4 added−4 removed

modified:src/exec/mod.rs+4 added-4 removed
242 unmodified lines
243 }244245 // A placeholder as the executable is meaningful for `--exec` but never for `--exec-batch`.246 if mode == ExecutionMode::Batch && args[0].has_tokens() {247 bail!(248 "First argument of --exec-batch must be a fixed executable, not a placeholder"249 );247 bail!("First argument of --exec-batch must be a fixed executable, not a placeholder");248 }249250 // If a placeholder token was not supplied, append one at the end of the command.251 if !has_placeholder {
172 unmodified lines
424 }425426 #[test]427 fn template_no_args() {430 assert!(CommandTemplate::new::<Vec<_>, &'static str>(vec![], ExecutionMode::OneByOne).is_err());428 assert!(429 CommandTemplate::new::<Vec<_>, &'static str>(vec![], ExecutionMode::OneByOne).is_err()430 );431 }432433 #[test]434 fn command_set_no_args() {
52 unmodified lines