File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -1227,14 +1227,6 @@ impl IndividualTestOptions {
1227
1227
}
1228
1228
}
1229
1229
1230
- fn ignore_to_bool ( ignore : & Ignore , target_str : & str ) -> bool {
1231
- match ignore {
1232
- Ignore :: All => true ,
1233
- Ignore :: None => false ,
1234
- Ignore :: Some ( ref ignores) => ignores. iter ( ) . any ( |s| target_str. contains ( s) ) ,
1235
- }
1236
- }
1237
-
1238
1230
pub ( crate ) trait Tester {
1239
1231
fn add_test ( & mut self , test : String , config : LangString , line : usize ) ;
1240
1232
fn get_line ( & self ) -> usize {
@@ -1500,7 +1492,11 @@ impl Tester for Collector {
1500
1492
Arc :: clone ( & self . rustdoc_test_options ) ,
1501
1493
test_id,
1502
1494
) ;
1503
- doctest. ignore = ignore_to_bool ( & doctest. lang_string . ignore , & target_str) ;
1495
+ doctest. ignore = match doctest. lang_string . ignore {
1496
+ Ignore :: All => true ,
1497
+ Ignore :: None => false ,
1498
+ Ignore :: Some ( ref ignores) => ignores. iter ( ) . any ( |s| target_str. contains ( s) ) ,
1499
+ } ;
1504
1500
self . tests . add_doctest (
1505
1501
doctest,
1506
1502
& opts,
You can’t perform that action at this time.
0 commit comments