File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/webserver/database/sqlpage_functions Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
6161pub ( 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}
You can’t perform that action at this time.
0 commit comments