@@ -36,13 +36,13 @@ fn make_client() -> awc::Client {
3636
3737/// Creates a file with inlined remote files included
3838async fn download_deps ( client : Rc < awc:: Client > , filename : & str ) {
39- let path_in = format ! ( "sqlpage/{}" , filename ) ;
39+ let path_in = format ! ( "sqlpage/{filename}" ) ;
4040 let out_dir = PathBuf :: from ( std:: env:: var ( "OUT_DIR" ) . unwrap ( ) ) ;
4141 let path_out: PathBuf = out_dir. join ( filename) ;
4242 // Generate outfile by reading infile and interpreting all comments
4343 // like "/* !include https://... */" as a request to include the contents of
4444 // the URL in the generated file.
45- println ! ( "cargo:rerun-if-changed={}" , path_in ) ;
45+ println ! ( "cargo:rerun-if-changed={path_in}" ) ;
4646 let original = File :: open ( path_in) . unwrap ( ) ;
4747 process_input_file ( & client, & path_out, original) . await ;
4848 std:: fs:: write (
@@ -68,7 +68,7 @@ async fn process_input_file(client: &awc::Client, path_out: &Path, original: Fil
6868 }
6969 outfile. write_all ( b"\n " ) . unwrap ( ) ;
7070 } else {
71- writeln ! ( outfile, "{}" , line ) . unwrap ( ) ;
71+ writeln ! ( outfile, "{line}" ) . unwrap ( ) ;
7272 }
7373 }
7474 outfile
@@ -119,10 +119,9 @@ async fn download_url_to_path(client: &awc::Client, url: &str, path: &Path) {
119119 let path = make_url_path ( url) ;
120120 panic ! (
121121 "We need to download external frontend dependencies to build the static frontend. \n \
122- Could not download static asset after {} attempts. You can manually download the file with: \n \
122+ Could not download static asset after {max_attempts } attempts. You can manually download the file with: \n \
123123 curl {url:?} > {path:?} \n \
124- {err}",
125- max_attempts
124+ {err}"
126125 ) ;
127126 }
128127 sleep ( Duration :: from_secs ( 1 ) ) . await ;
0 commit comments