File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ use fn_error_context::context;
17
17
use indoc:: indoc;
18
18
use ostree:: gio;
19
19
use ostree_container:: store:: PrepareResult ;
20
- use ostree_ext:: composefs:: fsverity;
20
+ use ostree_ext:: composefs:: fsverity:: { self , FsVerityHashValue } ;
21
21
use ostree_ext:: container as ostree_container;
22
22
use ostree_ext:: container_utils:: ostree_booted;
23
23
use ostree_ext:: keyfileext:: KeyFileExt ;
@@ -1199,7 +1199,7 @@ async fn run_from_opt(opt: Opt) -> Result<()> {
1199
1199
let fd =
1200
1200
std:: fs:: File :: open ( & path) . with_context ( || format ! ( "Reading {path}" ) ) ?;
1201
1201
let digest: fsverity:: Sha256HashValue = fsverity:: measure_verity ( & fd) ?;
1202
- let digest = hex :: encode ( digest) ;
1202
+ let digest = digest. to_hex ( ) ;
1203
1203
println ! ( "{digest}" ) ;
1204
1204
Ok ( ( ) )
1205
1205
}
You can’t perform that action at this time.
0 commit comments