File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -811,8 +811,8 @@ mod test {
811
811
fn test_switch_implies_cfg_test( ) {
812
812
let matches =
813
813
& 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: " +
816
816
getopts::fail_str(f)
817
817
};
818
818
let sessopts = build_session_options(
@@ -828,8 +828,8 @@ mod test {
828
828
fn test_switch_implies_cfg_test_unless_cfg_test( ) {
829
829
let matches =
830
830
& match getopts( ~[ ~"--test", ~"--cfg=test"] , optgroups( ) ) {
831
- Ok ( m) => m,
832
- Err ( f) => {
831
+ Ok ( copy m) => m,
832
+ Err ( copy f) => {
833
833
fail ~"test_switch_implies_cfg_test_unless_cfg_test: " +
834
834
getopts::fail_str(f);
835
835
}
You can’t perform that action at this time.
0 commit comments