mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +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
|
@ -231,8 +231,7 @@ where
|
|||
|
||||
if method != Method::GET {
|
||||
return Err(type_error(format!(
|
||||
"Fetching files only supports the GET method. Received {}.",
|
||||
method
|
||||
"Fetching files only supports the GET method. Received {method}."
|
||||
)));
|
||||
}
|
||||
|
||||
|
@ -347,11 +346,11 @@ where
|
|||
}
|
||||
"data" => {
|
||||
let data_url = DataUrl::process(url.as_str())
|
||||
.map_err(|e| type_error(format!("{:?}", e)))?;
|
||||
.map_err(|e| type_error(format!("{e:?}")))?;
|
||||
|
||||
let (body, _) = data_url
|
||||
.decode_to_vec()
|
||||
.map_err(|e| type_error(format!("{:?}", e)))?;
|
||||
.map_err(|e| type_error(format!("{e:?}")))?;
|
||||
|
||||
let response = http::Response::builder()
|
||||
.status(http::StatusCode::OK)
|
||||
|
@ -371,7 +370,7 @@ where
|
|||
// because the URL isn't an object URL.
|
||||
return Err(type_error("Blob for the given URL not found."));
|
||||
}
|
||||
_ => return Err(type_error(format!("scheme '{}' not supported", scheme))),
|
||||
_ => return Err(type_error(format!("scheme '{scheme}' not supported"))),
|
||||
};
|
||||
|
||||
Ok(FetchReturn {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue