Skip to content

Commit

Permalink
fix: fixes an intentional panic issue discovered via clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
kbknapp committed Jan 4, 2016
1 parent 4e3bd16 commit ea83a3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ vec_map = "0.4"
ansi_term = { version = "~0.7", optional = true }
strsim = { version = "~0.4.0", optional = true }
yaml-rust = { version = "~0.2.2", optional = true }
clippy = { version = "~0.0.29", optional = true }
clippy = { version = "~0.0.35", optional = true }

[features]
default = ["suggestions", "color"]
Expand Down
2 changes: 1 addition & 1 deletion src/args/arg_builder/flag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ impl<'n, 'a> From<&'a Arg<'n, 'n, 'n, 'n, 'n, 'n>> for FlagBuilder<'n> {
fn from(a: &Arg<'n, 'n, 'n, 'n, 'n, 'n>) -> Self {
if a.validator.is_some() {
panic!("The argument '{}' has a validator set, yet was parsed as a flag. Ensure \
.takes_value(true) or .index(u8) is set.")
.takes_value(true) or .index(u8) is set.", a.name)
}
if !a.empty_vals {
// Empty vals defaults to true, so if it's false it was manually set
Expand Down

0 comments on commit ea83a3d

Please sign in to comment.