From f5840bdcd360ec0bac2501f333e58e25742b1537 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Fri, 27 Jan 2023 10:43:16 -0500 Subject: chore: upgrade to Rust 1.67 (#17548) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bartek IwaƄczuk --- cli/lsp/urls.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cli/lsp/urls.rs') diff --git a/cli/lsp/urls.rs b/cli/lsp/urls.rs index abe83d3cb..4fba0c9ff 100644 --- a/cli/lsp/urls.rs +++ b/cli/lsp/urls.rs @@ -104,10 +104,10 @@ impl LspUrlMap { format!("deno:/asset{}", specifier.path()) } else if specifier.scheme() == "data" { let data_url = DataUrl::process(specifier.as_str()) - .map_err(|e| uri_error(format!("{:?}", e)))?; + .map_err(|e| uri_error(format!("{e:?}")))?; let mime = data_url.mime_type(); let (media_type, _) = - map_content_type(specifier, Some(&format!("{}", mime))); + map_content_type(specifier, Some(&format!("{mime}"))); let extension = if media_type == MediaType::Unknown { "" } else { @@ -128,7 +128,7 @@ impl LspUrlMap { }) .collect(); path.push_str(&parts.join("/")); - format!("deno:/{}", path) + format!("deno:/{path}") }; let url = Url::parse(&specifier_str)?; inner.put(specifier.clone(), url.clone()); -- cgit v1.2.3