File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ const RPC_DOMAIN: &str = "rpc-domain";
1818const K256_KEY : & str = "root-k256.key" ;
1919const BOOTSTRAP_INFO : & str = "bootstrap-info.json" ;
2020
21-
2221#[ derive( Debug , Clone , Deserialize ) ]
2322pub ( crate ) struct ImageConfig {
2423 pub verify : bool ,
Original file line number Diff line number Diff line change @@ -68,7 +68,9 @@ impl Image {
6868 let hda = info. hda . as_ref ( ) . map ( |hda| base_path. join ( hda) ) ;
6969 let rootfs = info. rootfs . as_ref ( ) . map ( |rootfs| base_path. join ( rootfs) ) ;
7070 let bios = info. bios . as_ref ( ) . map ( |bios| base_path. join ( bios) ) ;
71- let digest = fs:: read_to_string ( base_path. join ( "digest.txt" ) ) . ok ( ) . map ( |s| s. trim ( ) . to_string ( ) ) ;
71+ let digest = fs:: read_to_string ( base_path. join ( "digest.txt" ) )
72+ . ok ( )
73+ . map ( |s| s. trim ( ) . to_string ( ) ) ;
7274 if info. version . is_empty ( ) {
7375 // Older images does not have version field. Fallback to the version of the image folder name
7476 info. version = guess_version ( & base_path) . unwrap_or_default ( ) ;
You can’t perform that action at this time.
0 commit comments