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 /ext/web | |
| parent | 1a1faff2f67613ed0b89e1a34e6c3fd02ca6fd83 (diff) | |
chore: upgrade to Rust 1.67 (#17548)
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'ext/web')
| -rw-r--r-- | ext/web/blob.rs | 2 | ||||
| -rw-r--r-- | ext/web/lib.rs | 9 |
2 files changed, 4 insertions, 7 deletions
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<String, AnyError> { 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<U16String, AnyError> { 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<ResourceId, AnyError> { 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." )) })?; |
