Skip to content

Commit 7f617f3

Browse files
committed
string indexing no longer allowed in rust
1 parent 7beaa7c commit 7f617f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

argparse/parser.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ impl<'parser> ArgumentParser<'parser> {
661661
fail!("Bad short argument {}", name);
662662
}
663663
self.short_options.insert(
664-
name[1] as char, opt.clone());
664+
name.as_bytes()[1] as char, opt.clone());
665665
}
666666
}
667667
}

0 commit comments

Comments
 (0)