@@ -921,10 +921,10 @@ impl RustwideBuilder {
921921
922922        for  format_version in  [ format_version,  RustdocJsonFormatVersion :: Latest ]  { 
923923            let  _span = info_span ! ( "store_json" ,  %format_version) . entered ( ) ; 
924-             self . storage . store_one ( 
925-                  rustdoc_json_path ( name ,  version ,  target ,  format_version ) , 
926-                  compressed_json. clone ( ) , 
927-             ) ?; 
924+             let  path =  rustdoc_json_path ( name ,  version ,  target ,  format_version ) ; 
925+ 
926+             self . storage . store_one ( & path ,   compressed_json. clone ( ) ) ? ; 
927+             self . storage . set_public_access ( & path ,   true ) ?; 
928928        } 
929929
930930        Ok ( ( ) ) 
@@ -1478,12 +1478,14 @@ mod tests {
14781478                // other targets too 
14791479                for  target in  DEFAULT_TARGETS  { 
14801480                    // check if rustdoc json files exist for all targets 
1481-                     assert ! ( storage . exists ( & rustdoc_json_path( 
1481+                     let  path =  rustdoc_json_path ( 
14821482                        crate_, 
14831483                        version, 
14841484                        target, 
1485-                         RustdocJsonFormatVersion :: Latest 
1486-                     ) ) ?) ; 
1485+                         RustdocJsonFormatVersion :: Latest , 
1486+                     ) ; 
1487+                     assert ! ( storage. exists( & path) ?) ; 
1488+                     assert ! ( storage. get_public_access( & path) ?) ; 
14871489
14881490                    let  json_prefix = format ! ( "rustdoc-json/{crate_}/{version}/{target}/" ) ; 
14891491                    let  mut  json_files:  Vec < _ >  = storage
@@ -1492,8 +1494,6 @@ mod tests {
14921494                        . map ( |f| f. strip_prefix ( & json_prefix) . unwrap ( ) . to_owned ( ) ) 
14931495                        . collect ( ) ; 
14941496                    json_files. sort ( ) ; 
1495-                     dbg ! ( & json_prefix) ; 
1496-                     dbg ! ( & json_files) ; 
14971497                    assert_eq ! ( 
14981498                        json_files, 
14991499                        vec![ 
0 commit comments