From 2e10f9b5f7644837b05b3b419d491f30ae355756 Mon Sep 17 00:00:00 2001 From: Anthony Oteri Date: Tue, 26 Sep 2023 22:56:36 -0400 Subject: [PATCH] Automated code cleanup --- src/api.rs | 4 ++-- src/cli.rs | 2 +- src/main.rs | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/api.rs b/src/api.rs index 051a711..150add9 100644 --- a/src/api.rs +++ b/src/api.rs @@ -163,10 +163,10 @@ pub fn parse_response_status(response: &reqwest::Response) -> Result<(), ApiErro #[cfg(test)] mod tests { - use super::*; - use http::header::HeaderValue; + use super::*; + /// Test parsing a valid RFC5988 header value. /// /// Attempt to parse a valid RFC5988 header value, and ensure that the diff --git a/src/cli.rs b/src/cli.rs index 02637b0..1be9423 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -199,7 +199,7 @@ mod tests { cli.command, Commands::Show { image: String::from("foo"), - tag: None + tag: None, } ); } diff --git a/src/main.rs b/src/main.rs index 7adf62c..f8f7887 100644 --- a/src/main.rs +++ b/src/main.rs @@ -16,8 +16,9 @@ #![deny(clippy::pedantic)] -use clap::Parser; use std::io::{self, Write}; + +use clap::Parser; use url::Url; use crate::cli::Cli;