summaryrefslogtreecommitdiff
path: root/ext/web/lib.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-01-27 10:43:16 -0500
committerGitHub <noreply@github.com>2023-01-27 10:43:16 -0500
commitf5840bdcd360ec0bac2501f333e58e25742b1537 (patch)
tree7eb0818d2cafa0f6824e81b6ed2cfb609830971e /ext/web/lib.rs
parent1a1faff2f67613ed0b89e1a34e6c3fd02ca6fd83 (diff)
chore: upgrade to Rust 1.67 (#17548)
Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'ext/web/lib.rs')
-rw-r--r--ext/web/lib.rs9
1 files changed, 3 insertions, 6 deletions
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."
))
})?;