run s3 integration tests through rustfmt
@@ -22,8 +22,7 @@ type TestClient = S3Client<DefaultCredentialsProvider, Client>;
// executes those tests, and then destroys the resources
#[test]
fn test_all_the_things() {
- let client = S3Client::new(DefaultCredentialsProvider::new().unwrap(),
- Region::UsEast1);
+ let client = S3Client::new(DefaultCredentialsProvider::new().unwrap(), Region::UsEast1);
// a random number should probably be appended here too
let test_bucket = format!("rusoto_test_bucket_{}", get_time().sec);
@@ -58,20 +57,14 @@ fn test_all_the_things() {
}
fn test_create_bucket(client: &TestClient, bucket: &str) {
- let create_bucket_req = CreateBucketRequest {
- bucket: bucket.to_owned(),
- ..Default::default()
- };
+ let create_bucket_req = CreateBucketRequest { bucket: bucket.to_owned(), ..Default::default() };
let result = client.create_bucket(&create_bucket_req).unwrap();
println!("{:#?}", result);
}
fn test_delete_bucket(client: &TestClient, bucket: &str) {
- let delete_bucket_req = DeleteBucketRequest {
- bucket: bucket.to_owned(),
- ..Default::default()
- };
+ let delete_bucket_req = DeleteBucketRequest { bucket: bucket.to_owned(), ..Default::default() };
let result = client.delete_bucket(&delete_bucket_req).unwrap();
println!("{:#?}", result);
