Eleminate pattern warnings

This commit is contained in:
Brian Anderson 2012-12-06 14:11:11 -08:00
parent e6ab0ca8b1
commit c5ee9818ae

View file

@ -811,8 +811,8 @@ mod test {
fn test_switch_implies_cfg_test() {
let matches =
&match getopts(~[~"--test"], optgroups()) {
Ok(m) => m,
Err(f) => fail ~"test_switch_implies_cfg_test: " +
Ok(copy m) => m,
Err(copy f) => fail ~"test_switch_implies_cfg_test: " +
getopts::fail_str(f)
};
let sessopts = build_session_options(
@ -828,8 +828,8 @@ mod test {
fn test_switch_implies_cfg_test_unless_cfg_test() {
let matches =
&match getopts(~[~"--test", ~"--cfg=test"], optgroups()) {
Ok(m) => m,
Err(f) => {
Ok(copy m) => m,
Err(copy f) => {
fail ~"test_switch_implies_cfg_test_unless_cfg_test: " +
getopts::fail_str(f);
}