clap/examples
Martin Geisler d6743bb70d Fix compilation warnings (#825)
* tests: remove unnecessary mut

When building the projec, I was told

    warning: variable does not need to be mutable, #[warn(unused_mut)]
    on by default
      --> tests/macros.rs:39:9
       |
    39 |     let mut app = clap_app!(("app name with spaces-and-hyphens") =>
       |         ^^^^^^^

* examples: remove unused variable

The inner Some value is not used in the match arm:

    warning: unused variable: `local_matches`,
    #[warn(unused_variables)] on by default
       --> examples/20_subcommands.rs:128:32
        |
    128 |                 ("local", Some(local_matches)) =>{
        |                                ^^^^^^^^^^^^^
2017-01-29 18:13:49 -08:00
..
01a_quick_example.rs docs: updates examples for 2x release 2016-01-28 11:46:12 -05:00
01b_quick_example.rs docs: updates examples for 2x release 2016-01-28 11:46:12 -05:00
01c_quick_example.rs imp: Stabilize clap_app! 2016-10-16 21:33:52 +02:00
02_apps.rs docs: updates examples for 2x release 2016-01-28 11:46:12 -05:00
03_args.rs chore: fixes doc and style mistakes 2016-01-28 21:58:40 -05:00
04_using_matches.rs refactor(Examples): corrects compiler warnings about names 2015-08-30 15:43:57 -04:00
05_flag_args.rs refactor(Examples): corrects compiler warnings about names 2015-08-30 15:43:57 -04:00
06_positional_args.rs refactor(Examples): corrects compiler warnings about names 2015-08-30 15:43:57 -04:00
07_option_args.rs refactor(v2): improving macros for code dedup 2016-01-28 11:45:31 -05:00
08_subcommands.rs refactor(Examples): corrects compiler warnings about names 2015-08-30 15:43:57 -04:00
09_auto_version.rs docs: updates examples for 2x release 2016-01-28 11:46:12 -05:00
10_default_values.rs docs(Default Values): adds better examples on using default values 2016-09-18 16:01:27 -04:00
11_only_specific_values.rs docs: updates examples for 2x release 2016-01-28 11:46:12 -05:00
12_typed_values.rs tests(v2): fixing more tests on the new v2 base 2016-01-28 11:45:31 -05:00
13a_enum_values_automatic.rs docs: Fix typo in example 13a_enum_values_automatic 2016-10-30 20:03:05 +01:00
13b_enum_values_manual.rs docs: updates examples for 2x release 2016-01-28 11:46:12 -05:00
14_groups.rs docs: updates examples for 2x release 2016-01-28 11:46:12 -05:00
15_custom_validator.rs docs: updates examples for 2x release 2016-01-28 11:46:12 -05:00
16_app_settings.rs docs(Examples): adds better usage examples instead of having unused variables 2015-08-30 16:29:45 -04:00
17_yaml.rs fix(yaml-example): inconsistent args 2016-10-27 15:12:12 +02:00
17_yaml.yml Issues rollup (#637) 2016-08-27 23:42:31 -04:00
18_builder_macro.rs feat(clap_app!): Support --("some-arg-name") syntax for defining long arg names 2016-12-12 22:42:11 -08:00
19_auto_authors.rs removed unstable gate from crate_authors 2016-07-23 15:56:42 -07:00
20_subcommands.rs Fix compilation warnings (#825) 2017-01-29 18:13:49 -08:00
21_aliases.rs docs(Examples): adds subcommand examples 2016-12-07 15:28:21 -05:00