From 2b249153209924e14f25a26955bc0cb3763dfade Mon Sep 17 00:00:00 2001 From: Cyle Witruk Date: Thu, 4 Apr 2024 11:37:55 +0200 Subject: [PATCH] chore: fix a couple of clippy warnings --- src/api/image.rs | 2 +- src/api/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/image.rs b/src/api/image.rs index 0248698..dd34e9f 100644 --- a/src/api/image.rs +++ b/src/api/image.rs @@ -89,7 +89,7 @@ impl Image { let headers = opts .auth_header() .map(|auth| Headers::single(AUTH_HEADER, auth)) - .unwrap_or_else(Headers::default); + .unwrap_or_default(); self.docker .post_string(&ep, Payload::empty(), Some(headers)) diff --git a/src/api/mod.rs b/src/api/mod.rs index 609dd38..9b695da 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -28,7 +28,7 @@ pub mod swarm; #[cfg_attr(docsrs, doc(cfg(feature = "swarm")))] pub mod task; -pub use {container::*, exec::*, image::*, network::*, system::*, volume::*}; +pub use {container::*, exec::*, image::*, network::*, volume::*}; #[cfg(feature = "swarm")] #[cfg_attr(docsrs, doc(cfg(feature = "swarm")))]