File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11use std:: { collections:: HashMap , error:: Error , fs, path:: PathBuf } ;
22
33use bitcode:: { Decode , Encode } ;
4- use log:: debug;
4+ use log:: { debug, error } ;
55
66#[ derive( Encode , Decode ) ]
77struct CacheData ( HashMap < String , CacheEntry > ) ;
@@ -66,7 +66,7 @@ impl Drop for Cache {
6666 debug ! ( "writing cache to disk: {}" , self . path. display( ) ) ;
6767 let bytes = bitcode:: encode ( & self . data . 0 ) ;
6868 if let Err ( e) = fs:: write ( & self . path , bytes) {
69- eprintln ! ( "failed to write cache: {e}" ) ;
69+ error ! ( "failed to write cache: {e}" ) ;
7070 }
7171 }
7272 }
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ use std::{
1313use cache:: { Cache , CacheEntry } ;
1414use clap:: crate_version;
1515use clap:: Parser ;
16- use log:: { debug, trace} ;
16+ use log:: { debug, error , trace} ;
1717
1818fn pick ( picker : & str , derivations : & [ String ] ) -> Option < String > {
1919 let mut picker_process = Command :: new ( picker)
@@ -240,7 +240,7 @@ fn main() -> ExitCode {
240240 } else {
241241 match Cache :: new ( ) {
242242 Err ( e) => {
243- eprintln ! ( "failed to initialize cache, disabling related functionality: {e}" ) ;
243+ error ! ( "failed to initialize cache, disabling related functionality: {e}" ) ;
244244 None
245245 }
246246 Ok ( x) => Some ( x) ,
You can’t perform that action at this time.
0 commit comments