Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mach-kernel committed Jan 11, 2024
1 parent cdd117d commit f712fc9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
10 changes: 5 additions & 5 deletions databricks-kube/src/crds/git_credential.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,11 @@ impl RemoteAPIResource<APICredential> for GitCredential {
&self,
context: Arc<Context>,
) -> Pin<Box<dyn Stream<Item = Result<APICredential, DatabricksKubeError>> + Send>> {
let credential_id =
self.spec()
.credential
.credential_id
.ok_or(DatabricksKubeError::IDUnsetError);
let credential_id = self
.spec()
.credential
.credential_id
.ok_or(DatabricksKubeError::IDUnsetError);

try_stream! {
let config = APICredential::get_rest_config(context.clone()).await.unwrap();
Expand Down
3 changes: 1 addition & 2 deletions databricks-kube/tests/remote_api_resource_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@ use common::mock_k8s::{
mock_list_fake_resource,
};

use databricks_kube::error::{SerializableResponseContent, OpenAPIError};
use databricks_kube::{
context::Context, error::DatabricksKubeError, traits::remote_api_resource::RemoteAPIResource,
};

use async_stream::try_stream;
use flurry::HashMap;
use futures::{Future, FutureExt, Stream, StreamExt};
use hyper::{Body, StatusCode};
use hyper::Body;

use k8s_openapi::api::core::v1::{ConfigMap, Secret};
use k8s_openapi::apimachinery::pkg::apis::meta::v1::Time;
Expand Down

0 comments on commit f712fc9

Please sign in to comment.