Skip to content

Commit c5ee981

Browse files
committed
Eleminate pattern warnings
1 parent e6ab0ca commit c5ee981

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/librustc/driver/driver.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -811,8 +811,8 @@ mod test {
811811
fn test_switch_implies_cfg_test() {
812812
let matches =
813813
&match getopts(~[~"--test"], optgroups()) {
814-
Ok(m) => m,
815-
Err(f) => fail ~"test_switch_implies_cfg_test: " +
814+
Ok(copy m) => m,
815+
Err(copy f) => fail ~"test_switch_implies_cfg_test: " +
816816
getopts::fail_str(f)
817817
};
818818
let sessopts = build_session_options(
@@ -828,8 +828,8 @@ mod test {
828828
fn test_switch_implies_cfg_test_unless_cfg_test() {
829829
let matches =
830830
&match getopts(~[~"--test", ~"--cfg=test"], optgroups()) {
831-
Ok(m) => m,
832-
Err(f) => {
831+
Ok(copy m) => m,
832+
Err(copy f) => {
833833
fail ~"test_switch_implies_cfg_test_unless_cfg_test: " +
834834
getopts::fail_str(f);
835835
}

0 commit comments

Comments
 (0)