Skip to content

Commit

Permalink
Unused warnings in body.rs and admission example (#1543)
Browse files Browse the repository at this point in the history
Signed-off-by: clux <sszynrae@gmail.com>
  • Loading branch information
clux authored Jul 20, 2024
1 parent 2fe7219 commit 8329782
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions examples/admission_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};

Expand Down
3 changes: 1 addition & 2 deletions kube-client/src/client/body.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8329782

Please sign in to comment.