mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Fix more clippy warnings in components/shared/net
(#31548)
* Fix clippy warnings in components/shared * Fix build error * Fixes in order to solve some merge issues --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
67b277c992
commit
0bc685ed97
2 changed files with 15 additions and 11 deletions
|
@ -820,10 +820,10 @@ async fn scheme_fetch(
|
|||
|
||||
let (id, origin) = match parse_blob_url(&url) {
|
||||
Ok((id, origin)) => (id, origin),
|
||||
Err(()) => {
|
||||
return Response::network_error(NetworkError::Internal(
|
||||
"Invalid blob url".into(),
|
||||
));
|
||||
Err(error) => {
|
||||
return Response::network_error(NetworkError::Internal(format!(
|
||||
"Invalid blob URL ({error})"
|
||||
)));
|
||||
},
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue