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 --- ext/web/blob.rs | 2 +- ext/web/lib.rs | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) (limited to 'ext/web') diff --git a/ext/web/blob.rs b/ext/web/blob.rs index b43b3d17b..1a7992792 100644 --- a/ext/web/blob.rs +++ b/ext/web/blob.rs @@ -66,7 +66,7 @@ impl BlobStore { "null".to_string() }; let id = Uuid::new_v4(); - let url = Url::parse(&format!("blob:{}/{}", origin, id)).unwrap(); + let url = Url::parse(&format!("blob:{origin}/{id}")).unwrap(); let mut blob_store = self.object_urls.lock(); blob_store.insert(url.clone(), Arc::new(blob)); diff --git a/ext/web/lib.rs b/ext/web/lib.rs index 92cfcceeb..ac3fe59fe 100644 --- a/ext/web/lib.rs +++ b/ext/web/lib.rs @@ -175,8 +175,7 @@ fn op_encoding_normalize_label(label: String) -> Result { let encoding = Encoding::for_label_no_replacement(label.as_bytes()) .ok_or_else(|| { range_error(format!( - "The encoding label provided ('{}') is invalid.", - label + "The encoding label provided ('{label}') is invalid." )) })?; Ok(encoding.name().to_lowercase()) @@ -224,8 +223,7 @@ fn op_encoding_decode_single( ) -> Result { let encoding = Encoding::for_label(label.as_bytes()).ok_or_else(|| { range_error(format!( - "The encoding label provided ('{}') is invalid.", - label + "The encoding label provided ('{label}') is invalid." )) })?; @@ -278,8 +276,7 @@ fn op_encoding_new_decoder( ) -> Result { let encoding = Encoding::for_label(label.as_bytes()).ok_or_else(|| { range_error(format!( - "The encoding label provided ('{}') is invalid.", - label + "The encoding label provided ('{label}') is invalid." )) })?; -- cgit v1.2.3