File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -514,15 +514,15 @@ impl Options {
514
514
515
515
/// Derive a custom formatted message from a set of options. The formatted options provided to
516
516
/// a closure as an iterator.
517
- pub fn usage_with_format < F : FnMut ( & mut Iterator < Item = String > ) -> String > (
517
+ pub fn usage_with_format < F : FnMut ( & mut dyn Iterator < Item = String > ) -> String > (
518
518
& self ,
519
519
mut formatter : F ,
520
520
) -> String {
521
521
formatter ( & mut self . usage_items ( ) )
522
522
}
523
523
524
524
/// Derive usage items from a set of options.
525
- fn usage_items < ' a > ( & ' a self ) -> Box < Iterator < Item = String > + ' a > {
525
+ fn usage_items < ' a > ( & ' a self ) -> Box < dyn Iterator < Item = String > + ' a > {
526
526
let desc_sep = format ! ( "\n {}" , repeat( " " ) . take( 24 ) . collect:: <String >( ) ) ;
527
527
528
528
let any_short = self . grps . iter ( ) . any ( |optref| !optref. short_name . is_empty ( ) ) ;
@@ -938,7 +938,7 @@ fn find_opt(opts: &[Opt], nm: &Name) -> Option<usize> {
938
938
}
939
939
940
940
impl fmt:: Display for Fail {
941
- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
941
+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
942
942
match * self {
943
943
ArgumentMissing ( ref nm) => write ! ( f, "Argument to option '{}' missing" , * nm) ,
944
944
UnrecognizedOption ( ref nm) => write ! ( f, "Unrecognized option: '{}'" , * nm) ,
You can’t perform that action at this time.
0 commit comments