Skip to content

Commit fa602f2

Browse files
committed
Solve problems with clippy
1 parent 25922e5 commit fa602f2

File tree

1 file changed

+4
-4
lines changed
  • src/webserver/database/sqlpage_functions

1 file changed

+4
-4
lines changed

src/webserver/database/sqlpage_functions/s3.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pub(super) async fn upload_to_s3<'a>(
4040
base64::engine::general_purpose::STANDARD
4141
.decode(data.as_bytes())
4242
.map_err(|e| {
43-
log::error!("Base64 decode failed: {}", e);
43+
log::error!("Base64 decode failed: {e}");
4444
e
4545
})
4646
.context("Invalid base64 data")?
@@ -53,9 +53,9 @@ pub(super) async fn upload_to_s3<'a>(
5353
.body(body_bytes.into())
5454
.send()
5555
.await
56-
.map_err(|e| anyhow::anyhow!("Failed to upload to S3: {}", e))?;
56+
.map_err(|e| anyhow::anyhow!("Failed to upload to S3: {e}"))?;
5757

58-
Ok(format!("s3://{}/{}", bucket, key))
58+
Ok(format!("s3://{bucket}/{key}"))
5959
}
6060

6161
pub(super) async fn get_from_s3<'a>(
@@ -79,7 +79,7 @@ pub(super) async fn get_from_s3<'a>(
7979
.key(key.as_ref())
8080
.presigned(presigning_config)
8181
.await
82-
.map_err(|e| anyhow::anyhow!("Failed to generate presigned URL: {}", e))?;
82+
.map_err(|e| anyhow::anyhow!("Failed to generate presigned URL: {e}"))?;
8383

8484
Ok(presigned_request.uri().to_string())
8585
}

0 commit comments

Comments
 (0)