@@ -4,8 +4,8 @@ use std::process::Command;
44use std:: { fs:: File , path:: PathBuf } ;
55
66use anyhow:: { anyhow, Context as _, Result } ;
7- use clap:: { crate_authors , crate_version , Args , Parser } ;
8- use confidential_vm_blobs:: { EFI_BOOT_STUB , INIT , KERNEL , maybe_vendored :: MaybeVendoredImage } ;
7+ use clap:: { Args , Parser } ;
8+ use confidential_vm_blobs:: { maybe_vendored :: MaybeVendoredImage , EFI_BOOT_STUB , INIT , KERNEL } ;
99use tempfile:: NamedTempFile ;
1010
1111mod initramfs;
@@ -29,8 +29,7 @@ mod initramfs;
2929/// ```
3030#[ derive( Parser , Debug ) ]
3131#[ command( name = "Elf2Uki" ) ]
32- #[ command( version = crate_version!( ) ) ]
33- #[ command( author = crate_authors!( ) ) ]
32+ #[ command( version, author) ]
3433#[ command(
3534 about = "Assemble UKI files from their constituents" ,
3635 long_about = "Receive paths to the different building blocks of a UKI file as input, and output the resulting UKI file"
@@ -86,7 +85,6 @@ struct NonDefaultedArgs {
8685 kernel_cmdline : Option < String > ,
8786}
8887
89-
9088pub fn open_file ( path : & Path ) -> Result < File > {
9189 File :: open ( path) . with_context ( || format ! ( "failed to open file at path {}" , path. display( ) ) )
9290}
0 commit comments