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;