chore: Clippy fixes

This commit is contained in:
Gerald Pinder 2025-05-18 10:54:21 -04:00
parent 4a0fc3b4a1
commit 67cbca3218
6 changed files with 23 additions and 20 deletions

View file

@ -78,6 +78,7 @@ static BUILD_ID: std::sync::LazyLock<Uuid> = std::sync::LazyLock::new(Uuid::new_
/// If the args are left uninitialized, the program will determine
/// the best one available.
#[derive(Default, Clone, Copy, Debug, Builder, Args)]
#[allow(clippy::struct_field_names)]
pub struct DriverArgs {
/// Select which driver to use to build
/// your image.

View file

@ -466,7 +466,7 @@ fn build_tag_push_cmd(opts: &BuildTagPushOpts<'_>, first_image: &str) -> Command
fn get_final_images(opts: &BuildTagPushOpts<'_>) -> Vec<String> {
match &opts.image {
ImageRef::Remote(image) => {
let images = if opts.tags.is_empty() {
if opts.tags.is_empty() {
let image = image.to_string();
string_vec![image]
} else {
@ -474,9 +474,7 @@ fn get_final_images(opts: &BuildTagPushOpts<'_>) -> Vec<String> {
.iter()
.map(|tag| format!("{}/{}:{tag}", image.resolve_registry(), image.repository()))
.collect()
};
images
}
}
ImageRef::LocalTar(archive_path) => {
string_vec![archive_path.display().to_string()]