diff options
| author | Hermes Agent <hermes@localhost> | 2026-08-12 07:48:21 +0000 |
|---|---|---|
| committer | Hermes Agent <hermes@localhost> | 2026-08-12 07:48:21 +0000 |
| commit | f967d698efd44473a9285e02d0109f3bb0641622 (patch) | |
| tree | c94975571db9426cf71b15c9e6d16346e438c7c6 /src/cli.rs | |
| parent | 5e6cae20331f8e7cfd551b4656f0de852a4ad44c (diff) | |
Format native builder and satisfy clippy
Diffstat (limited to 'src/cli.rs')
| -rw-r--r-- | src/cli.rs | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -1,6 +1,6 @@ use std::path::PathBuf; -use anyhow::{bail, Result}; +use anyhow::{Result, bail}; use clap::{Parser, Subcommand}; use crate::build::BuildExecutor; @@ -77,7 +77,11 @@ pub fn run(cli: Cli) -> Result<()> { println!("artifact: {}", result.artifact().display()); println!("manifest: {}", result.manifest().display()); if let Some(initrd) = result.initrd() { - println!("initrd: {} sha256:{}", initrd.initrd_path().display(), initrd.sha256()); + println!( + "initrd: {} sha256:{}", + initrd.initrd_path().display(), + initrd.sha256() + ); } Ok(()) } @@ -101,7 +105,10 @@ pub fn run(cli: Cli) -> Result<()> { } fn load_artifact(path: &std::path::Path) -> Result<ArtifactManifest> { - if matches!(path.extension().and_then(|extension| extension.to_str()), Some("toml")) { + if matches!( + path.extension().and_then(|extension| extension.to_str()), + Some("toml") + ) { return ArtifactManifest::load(path); } |