File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,11 @@ Try to install it with `rustup install {}` command(-s)",
124124      #[  cfg(  feature"progress_bar"  )  ] 
125125      with_progress, 
126126    }  = o; 
127+     
128+     // Default value when progress_bar feature is disabled 
129+     #[  cfg(  not(  feature = "progress_bar"  )  )  ]  
130+     #[  allow(  unused_variables )  ]  
131+     let  with_progress = false ; 
127132
128133    // zzz : watch and review after been ready 
129134    // aaa : for Petro : use relevant entity. use either, implement TryFrom< Either< CrateDir, ManifestFile > > 
Original file line number Diff line number Diff line change @@ -94,6 +94,11 @@ mod private
9494      #[  cfg(  feature"progress_bar"  )  ] 
9595      with_progress
9696    }  = o. props . try_into ( ) ?; 
97+     
98+     // Default value when progress_bar feature is disabled 
99+     #[  cfg(  not(  feature = "progress_bar"  )  )  ]  
100+     #[  allow(  unused_variables )  ]  
101+     let  with_progress = false ; 
97102
98103    let  mut  channels = HashSet :: new ( ) ; 
99104    if  with_stable {  channels. insert (  Channel :: Stable  ) ;  } 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments