@@ -8,16 +8,6 @@ use options::{flags, HelpString, VersionString};
8
8
use options:: parser:: { Arg , Flag , ParseError } ;
9
9
10
10
11
- /// A list of legal choices for an argument-taking option
12
- #[ derive( PartialEq , Debug ) ]
13
- pub struct Choices ( & ' static [ & ' static str ] ) ;
14
-
15
- impl fmt:: Display for Choices {
16
- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
17
- write ! ( f, "choices: {}" , self . 0 . join( ", " ) )
18
- }
19
- }
20
-
21
11
/// A **misfire** is a thing that can happen instead of listing files -- a
22
12
/// catch-all for anything outside the program’s normal execution.
23
13
#[ derive( PartialEq , Debug ) ]
@@ -132,3 +122,14 @@ impl Misfire {
132
122
None
133
123
}
134
124
}
125
+
126
+
127
+ /// A list of legal choices for an argument-taking option.
128
+ #[ derive( PartialEq , Debug ) ]
129
+ pub struct Choices ( & ' static [ & ' static str ] ) ;
130
+
131
+ impl fmt:: Display for Choices {
132
+ fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
133
+ write ! ( f, "choices: {}" , self . 0 . join( ", " ) )
134
+ }
135
+ }
0 commit comments