Skip to content

Commit 802cf93

Browse files
committed
fmt
1 parent 78afa95 commit 802cf93

File tree

3 files changed

+3
-9
lines changed
  • examples

3 files changed

+3
-9
lines changed

examples/basic-s3-object-lambda-thumbnail/src/main.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,7 @@ mod tests {
113113
.returning(|_1| Ok("IMAGE".into()));
114114

115115
mock.expect_send_file()
116-
.withf(|r, t, by| {
117-
r.eq("O_ROUTE") && t.eq("O_TOKEN") && by == "THUMBNAIL".as_bytes()
118-
})
116+
.withf(|r, t, by| r.eq("O_ROUTE") && t.eq("O_TOKEN") && by == "THUMBNAIL".as_bytes())
119117
.returning(|_1, _2, _3| Ok("File sent.".to_string()));
120118

121119
let payload = get_s3_event();

examples/basic-s3-thumbnail/src/main.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,7 @@ mod tests {
173173
.returning(|_1, _2| Ok("IMAGE".into()));
174174

175175
mock.expect_put_file()
176-
.withf(|bu, ke, by| {
177-
bu.eq("test-bucket-thumbs") && ke.eq(key) && by.eq("THUMBNAIL".as_bytes())
178-
})
176+
.withf(|bu, ke, by| bu.eq("test-bucket-thumbs") && ke.eq(key) && by.eq("THUMBNAIL".as_bytes()))
179177
.return_const(Ok("Done".to_string()));
180178

181179
let payload = get_s3_event("ObjectCreated", bucket, key);

examples/lambda-rds-iam-auth/src/main.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ async fn generate_rds_iam_token(db_hostname: &str, port: u16, db_username: &str)
3838
.settings(signing_settings)
3939
.build()?;
4040

41-
let url = format!(
42-
"https://{db_hostname}:{port}/?Action=connect&DBUser={db_username}"
43-
);
41+
let url = format!("https://{db_hostname}:{port}/?Action=connect&DBUser={db_username}");
4442

4543
let signable_request =
4644
SignableRequest::new("GET", &url, std::iter::empty(), SignableBody::Bytes(&[])).expect("signable request");

0 commit comments

Comments
 (0)