Skip to content

Commit 1824313

Browse files
committed
Put misfire.rs in a nicer order
The main type is now at the top.
1 parent 43bbf00 commit 1824313

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

src/options/misfire.rs

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,6 @@ use options::{flags, HelpString, VersionString};
88
use options::parser::{Arg, Flag, ParseError};
99

1010

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-
2111
/// A **misfire** is a thing that can happen instead of listing files -- a
2212
/// catch-all for anything outside the program’s normal execution.
2313
#[derive(PartialEq, Debug)]
@@ -132,3 +122,14 @@ impl Misfire {
132122
None
133123
}
134124
}
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

Comments
 (0)