diff options
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." )) })?; |