File tree Expand file tree Collapse file tree 3 files changed +18
-6
lines changed
Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ mod flags;
33mod helpers;
44mod trace;
55
6- use std:: env:: var;
76use std:: collections:: HashMap ;
7+ use std:: env:: var;
88use std:: path:: PathBuf ;
99use std:: process:: ExitCode ;
1010
@@ -98,7 +98,10 @@ async fn main() -> miette::Result<ExitCode> {
9898 for ( name, root) in module_roots {
9999 let module_store = module_eval. evaluate ( name, root) . into_diagnostic ( ) ?;
100100 if debug_mode ( ) {
101- eprintln ! ( "module @{} at {:?}" , module_store. module_name, module_store. module_root) ;
101+ eprintln ! (
102+ "module @{} at {:?}" ,
103+ module_store. module_name, module_store. module_root
104+ ) ;
102105 } ;
103106 modules. push ( (
104107 module_store. module_name ,
Original file line number Diff line number Diff line change @@ -105,7 +105,10 @@ impl DiskStore {
105105 let mut bytes = [ 0u8 ; 32 ] ;
106106 rng. fill_bytes ( & mut bytes) ;
107107 let hex_string: String = bytes. iter ( ) . map ( |b| format ! ( "{:02x}" , b) ) . collect ( ) ;
108- self . root ( ) . join ( "dl" ) . join ( hex_string) . with_extension ( "tmp" )
108+ self . root ( )
109+ . join ( "dl" )
110+ . join ( hex_string)
111+ . with_extension ( "tmp" )
109112 }
110113
111114 async fn fetch_dep (
@@ -299,7 +302,10 @@ impl DiskStore {
299302 . map_err ( |err| StoreError :: LinkError ( err) ) ?;
300303 }
301304 Dep :: Remote ( dep) => {
302- let cas_path = dep. integrity . as_ref ( ) . map ( |integrity| self . cas_path_for_integrity ( integrity) ) ;
305+ let cas_path = dep
306+ . integrity
307+ . as_ref ( )
308+ . map ( |integrity| self . cas_path_for_integrity ( integrity) ) ;
303309
304310 let need_fetch = match & cas_path {
305311 Some ( cas_path) => !tokio:: fs:: try_exists ( cas_path) . await ?,
@@ -317,7 +323,10 @@ impl DiskStore {
317323 for ( i, url) in dep. urls . iter ( ) . enumerate ( ) {
318324 match self . fetch_dep ( & client, dep, url) . await {
319325 Ok ( Some ( computed) ) => {
320- return Err ( StoreError :: MissingIntegrity ( dep. name . clone ( ) , computed) ) ;
326+ return Err ( StoreError :: MissingIntegrity (
327+ dep. name . clone ( ) ,
328+ computed,
329+ ) ) ;
321330 }
322331 Ok ( None ) => {
323332 fetched = true ;
Original file line number Diff line number Diff line change @@ -271,4 +271,4 @@ impl AxlModuleEvaluator {
271271
272272 Ok ( store)
273273 }
274- }
274+ }
You can’t perform that action at this time.
0 commit comments