Skip to content

Commit

Permalink
VTX-3411: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
fsdvh committed Dec 8, 2023
1 parent ce303ac commit dd505d4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
9 changes: 5 additions & 4 deletions object_store/src/aws/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,10 @@ impl AmazonS3 {
#[async_trait]
impl ObjectStore for AmazonS3 {
async fn put(&self, location: &Path, bytes: Bytes) -> Result<()> {
self.client.put_request(location, bytes, &(), None).await.map(|_| ())
self.client
.put_request(location, bytes, &(), None)
.await
.map(|_| ())
}

async fn put_opts(
Expand All @@ -224,9 +227,7 @@ impl ObjectStore for AmazonS3 {
options: PutOptions,
) -> Result<()> {
if options.tags.is_empty() {
self.client
.put_request(location, bytes, &(), None)
.await?;
self.client.put_request(location, bytes, &(), None).await?;
} else {
self.client
.put_request(location, bytes, &(), Some(&options.tags))
Expand Down
1 change: 0 additions & 1 deletion object_store/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,6 @@ pub struct StaticCredentialProvider<T> {
}

impl<T> StaticCredentialProvider<T> {

/// A [`CredentialProvider`] for a static credential of type `T`
#[allow(dead_code)]
pub fn new(credential: T) -> Self {
Expand Down
5 changes: 4 additions & 1 deletion object_store/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,10 @@ pub mod throttle;
mod client;

#[cfg(feature = "cloud")]
pub use client::{backoff::BackoffConfig, retry::RetryConfig, CredentialProvider, ClientConfigKey, ClientOptions};
pub use client::{
backoff::BackoffConfig, retry::RetryConfig, ClientConfigKey, ClientOptions,
CredentialProvider,
};
use std::collections::HashMap;

#[cfg(feature = "cloud")]
Expand Down
2 changes: 1 addition & 1 deletion object_store/src/limit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

use crate::{
BoxStream, GetOptions, GetResult, GetResultPayload, ListResult, MultipartId,
ObjectMeta, ObjectStore, Path, PutOptions, Result, StreamExt,
ObjectMeta, ObjectStore, Path, PutOptions, Result, StreamExt,
};
use async_trait::async_trait;
use bytes::Bytes;
Expand Down

0 comments on commit dd505d4

Please sign in to comment.