File tree Expand file tree Collapse file tree 3 files changed +0
-211
lines changed Expand file tree Collapse file tree 3 files changed +0
-211
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -109,7 +109,6 @@ mod handlers {
109
109
mod replace_let_with_if_let;
110
110
mod replace_qualified_name_with_use;
111
111
mod replace_string_with_char;
112
- mod replace_unwrap_with_match;
113
112
mod split_import;
114
113
mod toggle_ignore;
115
114
mod unmerge_use;
@@ -182,7 +181,6 @@ mod handlers {
182
181
replace_impl_trait_with_generic:: replace_impl_trait_with_generic,
183
182
replace_let_with_if_let:: replace_let_with_if_let,
184
183
replace_qualified_name_with_use:: replace_qualified_name_with_use,
185
- replace_unwrap_with_match:: replace_unwrap_with_match,
186
184
split_import:: split_import,
187
185
toggle_ignore:: toggle_ignore,
188
186
unmerge_use:: unmerge_use,
Original file line number Diff line number Diff line change @@ -1506,29 +1506,6 @@ fn main() {
1506
1506
)
1507
1507
}
1508
1508
1509
- #[ test]
1510
- fn doctest_replace_unwrap_with_match ( ) {
1511
- check_doc_test (
1512
- "replace_unwrap_with_match" ,
1513
- r#####"
1514
- //- minicore: result
1515
- fn main() {
1516
- let x: Result<i32, i32> = Ok(92);
1517
- let y = x.$0unwrap();
1518
- }
1519
- "##### ,
1520
- r#####"
1521
- fn main() {
1522
- let x: Result<i32, i32> = Ok(92);
1523
- let y = match x {
1524
- Ok(it) => it,
1525
- $0_ => unreachable!(),
1526
- };
1527
- }
1528
- "##### ,
1529
- )
1530
- }
1531
-
1532
1509
#[ test]
1533
1510
fn doctest_split_import ( ) {
1534
1511
check_doc_test (
You can’t perform that action at this time.
0 commit comments