mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 19:08:15 +00:00
chore: upgrade to Rust 1.67 (#17548)
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
This commit is contained in:
parent
1a1faff2f6
commit
f5840bdcd3
148 changed files with 576 additions and 681 deletions
|
@ -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."
|
||||
))
|
||||
})?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue