Skip to content

Commit 994410e

Browse files
committed
cargo fmt
1 parent c12af85 commit 994410e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

kms/src/config.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ const RPC_DOMAIN: &str = "rpc-domain";
1818
const K256_KEY: &str = "root-k256.key";
1919
const BOOTSTRAP_INFO: &str = "bootstrap-info.json";
2020

21-
2221
#[derive(Debug, Clone, Deserialize)]
2322
pub(crate) struct ImageConfig {
2423
pub verify: bool,

vmm/src/app/image.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)