File tree Expand file tree Collapse file tree 3 files changed +2
-7
lines changed Expand file tree Collapse file tree 3 files changed +2
-7
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
2
on : [push, pull_request]
3
-
4
3
jobs :
5
4
test :
6
5
name : Test
Original file line number Diff line number Diff line change @@ -13,7 +13,3 @@ Add this to your `Cargo.toml`:
13
13
[dependencies ]
14
14
getopts = " 0.2"
15
15
```
16
-
17
- ## Rust Version Support
18
-
19
- The minimum supported Rust version is 1.18.
Original file line number Diff line number Diff line change @@ -503,15 +503,15 @@ impl Options {
503
503
504
504
/// Derive a custom formatted message from a set of options. The formatted options provided to
505
505
/// a closure as an iterator.
506
- pub fn usage_with_format < F : FnMut ( & mut Iterator < Item = String > ) -> String > (
506
+ pub fn usage_with_format < F : FnMut ( & mut dyn Iterator < Item = String > ) -> String > (
507
507
& self ,
508
508
mut formatter : F ,
509
509
) -> String {
510
510
formatter ( & mut self . usage_items ( ) )
511
511
}
512
512
513
513
/// Derive usage items from a set of options.
514
- fn usage_items < ' a > ( & ' a self ) -> Box < Iterator < Item = String > + ' a > {
514
+ fn usage_items < ' a > ( & ' a self ) -> Box < dyn Iterator < Item = String > + ' a > {
515
515
let desc_sep = format ! ( "\n {}" , repeat( " " ) . take( 24 ) . collect:: <String >( ) ) ;
516
516
517
517
let any_short = self . grps . iter ( ) . any ( |optref| !optref. short_name . is_empty ( ) ) ;
You can’t perform that action at this time.
0 commit comments