Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
clux committed Mar 10, 2021
1 parent 809944f commit db6ff15
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion kube-runtime/src/controller/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use futures::{
use kube::api::{Api, ListParams, Meta};
use serde::de::DeserializeOwned;
use snafu::{futures::TryStreamExt as SnafuTryStreamExt, Backtrace, ResultExt, Snafu};
use std::{sync::Arc, time::Duration, fmt::Debug};
use std::{fmt::Debug, sync::Arc, time::Duration};
use stream::BoxStream;
use tokio::{runtime::Handle, time::Instant};

Expand Down
3 changes: 1 addition & 2 deletions kube-runtime/src/watcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ use kube::{
use serde::de::DeserializeOwned;
use smallvec::SmallVec;
use snafu::{Backtrace, ResultExt, Snafu};
use std::clone::Clone;
use std::fmt::Debug;
use std::{clone::Clone, fmt::Debug};

#[derive(Snafu, Debug)]
pub enum Error {
Expand Down
2 changes: 1 addition & 1 deletion kube/src/api/subresource.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use bytes::Bytes;
use futures::Stream;
use tracing::instrument;
use serde::de::DeserializeOwned;
use std::fmt::Debug;
use tracing::instrument;

use crate::{
api::{Api, DeleteParams, Patch, PatchParams, PostParams, Resource},
Expand Down
12 changes: 8 additions & 4 deletions kube/src/api/typed.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
use either::Either;
use futures::Stream;
use tracing::instrument;
use serde::{de::DeserializeOwned, Serialize};
use std::iter;
use std::fmt::Debug;
use std::{fmt::Debug, iter};
use tracing::instrument;

use crate::{
api::{DeleteParams, ListParams, Meta, ObjectList, Patch, PatchParams, PostParams, Resource, WatchEvent},
Expand Down Expand Up @@ -230,7 +229,12 @@ where
/// [`Patch`]: super::Patch
/// [`PatchParams`]: super::PatchParams
#[instrument(skip(self))]
pub async fn patch<P: Serialize + Debug>(&self, name: &str, pp: &PatchParams, patch: &Patch<P>) -> Result<K> {
pub async fn patch<P: Serialize + Debug>(
&self,
name: &str,
pp: &PatchParams,
patch: &Patch<P>,
) -> Result<K> {
let req = self.resource.patch(name, &pp, patch)?;
self.client.request::<K>(req).await
}
Expand Down

0 comments on commit db6ff15

Please sign in to comment.