diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/src/main.rs b/src/main.rs index 64dcd2a..ceeb0cf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -71,21 +71,20 @@ fn main() -> Result<()> { if args.print_everything { println!("{}", &makefile); - } - - let targets = if args.targets().count() == 0 { - let first_target = makefile.first_non_special_target.clone(); - match first_target { - Some(x) => vec![x], - None => bail!("no targets given on command line or found in makefile."), - } } else { - args.targets().cloned().collect() - }; + let targets = if args.targets().count() == 0 { + let first_target = makefile.first_non_special_target.clone(); + match first_target { + Some(x) => vec![x], + None => bail!("no targets given on command line or found in makefile."), + } + } else { + args.targets().cloned().collect() + }; - for target in targets { - makefile.update_target(&target)?; + for target in targets { + makefile.update_target(&target)?; + } } - Ok(()) } |