Skip to content

Commit d03feb2

Browse files
cli: Handle compatibility with latest composefs-rs
Signed-off-by: Pragyan Poudyal <[email protected]>
1 parent 6cfb4be commit d03feb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/cli.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use fn_error_context::context;
1717
use indoc::indoc;
1818
use ostree::gio;
1919
use ostree_container::store::PrepareResult;
20-
use ostree_ext::composefs::fsverity;
20+
use ostree_ext::composefs::fsverity::{self, FsVerityHashValue};
2121
use ostree_ext::container as ostree_container;
2222
use ostree_ext::container_utils::ostree_booted;
2323
use ostree_ext::keyfileext::KeyFileExt;
@@ -1199,7 +1199,7 @@ async fn run_from_opt(opt: Opt) -> Result<()> {
11991199
let fd =
12001200
std::fs::File::open(&path).with_context(|| format!("Reading {path}"))?;
12011201
let digest: fsverity::Sha256HashValue = fsverity::measure_verity(&fd)?;
1202-
let digest = hex::encode(digest);
1202+
let digest = digest.to_hex();
12031203
println!("{digest}");
12041204
Ok(())
12051205
}

0 commit comments

Comments
 (0)