@@ -118,7 +118,7 @@ impl Package<'_> {
118118 ) {
119119 Ok ( ok) => ok,
120120 Err ( err) => {
121- error ! ( "Downloading failed with error {}" , err ) ;
121+ error ! ( "Downloading failed with error {err}" ) ;
122122 self . status = PackageStatus :: DownloadFailed ;
123123 bail ! ( "unable to download data(url {})" , self . url) ;
124124 }
@@ -130,10 +130,10 @@ impl Package<'_> {
130130
131131 fn verify_checksum ( & mut self , calculated_sha256 : omaha:: Hash < omaha:: Sha256 > , calculated_sha1 : omaha:: Hash < omaha:: Sha1 > ) -> bool {
132132 debug ! ( " expected sha256: {:?}" , self . hash_sha256) ;
133- debug ! ( " calculated sha256: {}" , calculated_sha256 ) ;
133+ debug ! ( " calculated sha256: {calculated_sha256}" ) ;
134134 debug ! ( " sha256 match? {}" , self . hash_sha256 == Some ( calculated_sha256. clone( ) ) ) ;
135135 debug ! ( " expected sha1: {:?}" , self . hash_sha1) ;
136- debug ! ( " calculated sha1: {}" , calculated_sha1 ) ;
136+ debug ! ( " calculated sha1: {calculated_sha1}" ) ;
137137 debug ! ( " sha1 match? {}" , self . hash_sha1 == Some ( calculated_sha1. clone( ) ) ) ;
138138
139139 if self . hash_sha256 . is_some ( ) && self . hash_sha256 != Some ( calculated_sha256. clone ( ) ) || self . hash_sha1 . is_some ( ) && self . hash_sha1 != Some ( calculated_sha1. clone ( ) ) {
@@ -198,7 +198,7 @@ impl Package<'_> {
198198 }
199199 } ;
200200
201- println ! ( "Parsed and verified signature data from file {:?}" , from_path ) ;
201+ println ! ( "Parsed and verified signature data from file {from_path :?}" ) ;
202202
203203 self . status = PackageStatus :: Verified ;
204204 Ok ( datablobspath)
@@ -255,7 +255,7 @@ where
255255 U : reqwest:: IntoUrl + From < U > + std:: clone:: Clone + std:: fmt:: Debug ,
256256 Url : From < U > ,
257257{
258- let r = ue_rs:: download_and_hash ( client, input_url. clone ( ) , path, None , None ) . context ( format ! ( "unable to download data(url {:?})" , input_url ) ) ?;
258+ let r = ue_rs:: download_and_hash ( client, input_url. clone ( ) , path, None , None ) . context ( format ! ( "unable to download data(url {input_url :?})" ) ) ?;
259259
260260 Ok ( Package {
261261 name : Cow :: Borrowed ( path. file_name ( ) . unwrap_or ( OsStr :: new ( "fakepackage" ) ) . to_str ( ) . unwrap_or ( "fakepackage" ) ) ,
@@ -280,7 +280,7 @@ fn do_download_verify(pkg: &mut Package<'_>, output_filename: Option<String>, ou
280280 let datablobspath = pkg. verify_signature_on_disk ( & pkg_unverified, pubkey_file) . context ( format ! ( "unable to verify signature \" {}\" " , pkg. name) ) ?;
281281
282282 // write extracted data into the final data.
283- debug ! ( "data blobs written into file {:?}" , pkg_verified ) ;
283+ debug ! ( "data blobs written into file {pkg_verified :?}" ) ;
284284 fs:: rename ( datablobspath, pkg_verified) ?;
285285
286286 Ok ( ( ) )
@@ -339,7 +339,7 @@ fn main() -> Result<(), Box<dyn Error>> {
339339 env_logger:: init ( ) ;
340340
341341 let args: Args = argh:: from_env ( ) ;
342- println ! ( "{:?}" , args ) ;
342+ println ! ( "{args :?}" ) ;
343343
344344 if args. payload_url . is_none ( ) && !args. take_first_match && args. target_filename . is_some ( ) {
345345 return Err ( "--target-filename can only be specified with --take-first-match" . into ( ) ) ;
@@ -411,7 +411,7 @@ fn main() -> Result<(), Box<dyn Error>> {
411411 } ;
412412
413413 let response_text = res_local. ok_or ( anyhow ! ( "failed to get response text" ) ) ?;
414- debug ! ( "response_text: {:?}" , response_text ) ;
414+ debug ! ( "response_text: {response_text :?}" ) ;
415415
416416 ////
417417 // parse response
@@ -420,7 +420,7 @@ fn main() -> Result<(), Box<dyn Error>> {
420420
421421 let mut pkgs_to_dl = get_pkgs_to_download ( & resp, & glob_set) ?;
422422
423- debug ! ( "pkgs:\n \t {:#?}" , pkgs_to_dl ) ;
423+ debug ! ( "pkgs:\n \t {pkgs_to_dl :#?}" ) ;
424424 debug ! ( "" ) ;
425425
426426 ////
0 commit comments