From 8329782366039d73e0ba177af84f3da7853ba053 Mon Sep 17 00:00:00 2001 From: Eirik A Date: Sun, 21 Jul 2024 00:11:08 +0100 Subject: [PATCH] Unused warnings in body.rs and admission example (#1543) Signed-off-by: clux --- examples/admission_controller.rs | 4 +--- kube-client/src/client/body.rs | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/examples/admission_controller.rs b/examples/admission_controller.rs index 10b9c6573..801c64028 100644 --- a/examples/admission_controller.rs +++ b/examples/admission_controller.rs @@ -3,9 +3,7 @@ use kube::core::{ admission::{AdmissionRequest, AdmissionResponse, AdmissionReview}, DynamicObject, Resource, ResourceExt, }; - -use kube::runtime::finalizer; -use std::{convert::Infallible, error::Error, str::FromStr}; +use std::{convert::Infallible, error::Error}; use tracing::*; use warp::{reply, Filter, Reply}; diff --git a/kube-client/src/client/body.rs b/kube-client/src/client/body.rs index 90bbfb682..5997218d8 100644 --- a/kube-client/src/client/body.rs +++ b/kube-client/src/client/body.rs @@ -6,9 +6,8 @@ use std::{ }; use bytes::Bytes; -use futures::{stream::Stream, TryStreamExt}; use http_body::{Body as HttpBody, Frame, SizeHint}; -use http_body_util::{combinators::UnsyncBoxBody, BodyExt, BodyStream}; +use http_body_util::{combinators::UnsyncBoxBody, BodyExt}; /// A request body. pub struct Body {