File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -1498,15 +1498,14 @@ mod tests {
1498
1498
let ext = compression:: file_extension_for ( * alg) ;
1499
1499
1500
1500
let json_prefix = format ! ( "rustdoc-json/{crate_}/{version}/{target}/" ) ;
1501
- let mut json_files: Vec < _ > = dbg ! (
1502
- storage
1503
- . list_prefix( & json_prefix)
1504
- . filter_map( |res| res. ok( ) )
1505
- . map( |f| f. strip_prefix( & json_prefix) . unwrap( ) . to_owned( ) )
1506
- . collect( )
1507
- ) ;
1501
+ let mut json_files: Vec < _ > = storage
1502
+ . list_prefix ( & json_prefix)
1503
+ . filter_map ( |res| res. ok ( ) )
1504
+ . map ( |f| f. strip_prefix ( & json_prefix) . unwrap ( ) . to_owned ( ) )
1505
+ . collect ( ) ;
1508
1506
json_files. retain ( |f| f. ends_with ( & format ! ( ".json.{ext}" ) ) ) ;
1509
1507
json_files. sort ( ) ;
1508
+ dbg ! ( & json_files) ;
1510
1509
assert ! (
1511
1510
json_files[ 0 ] . starts_with( & format!( "empty-library_1.0.0_{target}_" ) )
1512
1511
) ;
You can’t perform that action at this time.
0 commit comments