@@ -161,14 +161,11 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
161161 repo_ref
162162 . and_then ( |r| match git_repo_head_ref ( r) {
163163 Ok ( ref_name) => {
164- debug ! ( "Found current branch reference: {}" , ref_name ) ;
164+ debug ! ( "Found current branch reference: {ref_name}" ) ;
165165 Some ( ref_name)
166166 }
167167 Err ( e) => {
168- debug ! (
169- "No valid branch reference found (likely detached HEAD): {}" ,
170- e
171- ) ;
168+ debug ! ( "No valid branch reference found (likely detached HEAD): {e}" ) ;
172169 None
173170 }
174171 } )
@@ -188,11 +185,11 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
188185 repo_ref
189186 . and_then ( |r| match git_repo_base_ref ( r, & cached_remote) {
190187 Ok ( base_ref_name) => {
191- debug ! ( "Found base reference: {}" , base_ref_name ) ;
188+ debug ! ( "Found base reference: {base_ref_name}" ) ;
192189 Some ( base_ref_name)
193190 }
194191 Err ( e) => {
195- info ! ( "Could not detect base branch reference: {}" , e ) ;
192+ info ! ( "Could not detect base branch reference: {e}" ) ;
196193 None
197194 }
198195 } )
@@ -208,15 +205,15 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
208205 repo_ref
209206 . and_then ( |r| match git_repo_base_repo_name_preserve_case ( r) {
210207 Ok ( Some ( base_repo_name) ) => {
211- debug ! ( "Found base repository name: {}" , base_repo_name ) ;
208+ debug ! ( "Found base repository name: {base_repo_name}" ) ;
212209 Some ( base_repo_name)
213210 }
214211 Ok ( None ) => {
215212 debug ! ( "No base repository found - not a fork" ) ;
216213 None
217214 }
218215 Err ( e) => {
219- warn ! ( "Could not detect base repository name: {}" , e ) ;
216+ warn ! ( "Could not detect base repository name: {e}" ) ;
220217 None
221218 }
222219 } )
@@ -237,7 +234,7 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
237234 . map ( Cow :: Borrowed )
238235 . or_else ( || {
239236 vcs:: find_base_sha ( )
240- . inspect_err ( |e| debug ! ( "Error finding base SHA: {}" , e ) )
237+ . inspect_err ( |e| debug ! ( "Error finding base SHA: {e}" ) )
241238 . ok ( )
242239 . flatten ( )
243240 . map ( Cow :: Owned )
@@ -326,7 +323,7 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
326323 uploaded_paths_and_urls. push ( ( path. to_path_buf ( ) , artifact_url) ) ;
327324 }
328325 Err ( e) => {
329- debug ! ( "Failed to upload file at path {}: {}" , path. display( ) , e ) ;
326+ debug ! ( "Failed to upload file at path {}: {e }" , path. display( ) ) ;
330327 errored_paths_and_reasons. push ( ( path. to_path_buf ( ) , e) ) ;
331328 }
332329 }
@@ -446,7 +443,7 @@ fn normalize_file(path: &Path, bytes: &[u8]) -> Result<TempFile> {
446443 . to_str ( )
447444 . with_context ( || format ! ( "Failed to get relative path for {}" , path. display( ) ) ) ?;
448445
449- debug ! ( "Adding file to zip: {}" , file_name ) ;
446+ debug ! ( "Adding file to zip: {file_name}" ) ;
450447
451448 // Need to set the last modified time to a fixed value to ensure consistent checksums
452449 // This is important as an optimization to avoid re-uploading the same chunks if they're already on the server
@@ -486,11 +483,8 @@ fn upload_file(
486483 update to the latest version of Sentry to use the build upload command.";
487484
488485 debug ! (
489- "Uploading file to organization: {}, project: {}, build_configuration: {}, vcs_info: {:?}" ,
490- org,
491- project,
486+ "Uploading file to organization: {org}, project: {project}, build_configuration: {}, vcs_info: {vcs_info:?}" ,
492487 build_configuration. unwrap_or( "unknown" ) ,
493- vcs_info,
494488 ) ;
495489
496490 let chunk_upload_options = api. get_chunk_upload_options ( org) ?. ok_or_else ( || {
@@ -569,7 +563,7 @@ fn upload_file(
569563 // true for ChunkedFileState::NotFound.
570564 if response. state == ChunkedFileState :: Error {
571565 let message = response. detail . as_deref ( ) . unwrap_or ( "unknown error" ) ;
572- bail ! ( "Failed to process uploaded files: {}" , message ) ;
566+ bail ! ( "Failed to process uploaded files: {message}" ) ;
573567 }
574568
575569 if let Some ( artifact_url) = response. artifact_url {
0 commit comments