diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-01-27 10:43:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-27 10:43:16 -0500 |
commit | f5840bdcd360ec0bac2501f333e58e25742b1537 (patch) | |
tree | 7eb0818d2cafa0f6824e81b6ed2cfb609830971e /cli/tsc/mod.rs | |
parent | 1a1faff2f67613ed0b89e1a34e6c3fd02ca6fd83 (diff) |
chore: upgrade to Rust 1.67 (#17548)
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/tsc/mod.rs')
-rw-r--r-- | cli/tsc/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/tsc/mod.rs b/cli/tsc/mod.rs index 439a0de20..3e7fbfb15 100644 --- a/cli/tsc/mod.rs +++ b/cli/tsc/mod.rs @@ -98,7 +98,7 @@ pub fn get_types_declaration_file_text(unstable: bool) -> String { lib_names .into_iter() .map(|name| { - let asset_url = format!("asset:///lib.{}.d.ts", name); + let asset_url = format!("asset:///lib.{name}.d.ts"); assets.remove(&asset_url).unwrap() }) .collect::<Vec<_>>() @@ -204,7 +204,7 @@ impl fmt::Display for Stats { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { writeln!(f, "Compilation statistics:")?; for (key, value) in self.0.clone() { - writeln!(f, " {}: {}", key, value)?; + writeln!(f, " {key}: {value}")?; } Ok(()) @@ -838,7 +838,7 @@ pub fn exec(request: Request) -> Result<Response, AnyError> { "rootNames": root_names, }); let request_str = request_value.to_string(); - let exec_source = format!("globalThis.exec({})", request_str); + let exec_source = format!("globalThis.exec({request_str})"); runtime .execute_script(&located_script_name!(), startup_source) |