8000 Make request parameter immutable in send_response_to_devtools and sen… · servo/servo@2582292 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2582292

Browse files
authored
Make request parameter immutable in send_response_to_devtools and send_early_httprequest_to_devtools (#38319)
- Changes request parameters to immutable borrow Testing: Fixes: #38300 Signed-off-by: uthmaniv <uthmanyahayababa@gmail.com>
1 parent d410236 commit 2582292

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

components/net/http_loader.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -433,11 +433,7 @@ pub fn send_request_to_devtools(
433433
.unwrap();
434434
}
435435

436-
pub fn send_response_to_devtools(
437-
request: &mut Request,
438-
context: &FetchContext,
439-
response: &Response,
440-
) {
436+
pub fn send_response_to_devtools(request: &Request, context: &FetchContext, response: &Response) {
441437
if let (Some(devtools_chan), Some(pipeline_id), Some(webview_id)) = (
442438
context.devtools_chan.as_ref(),
443439
request.pipeline_id,
@@ -473,7 +469,7 @@ pub fn send_response_to_devtools(
473469
}
474470
}
475471

476-
pub fn send_early_httprequest_to_devtools(request: &mut Request, context: &FetchContext) {
472+
pub fn send_early_httprequest_to_devtools(request: &Request, context: &FetchContext) {
477473
if let (Some(devtools_chan), Some(browsing_context_id), Some(pipeline_id)) = (
478474
context.devtools_chan.as_ref(),
479475
request.target_webview_id.map(|id| id.0),

0 commit comments

Comments
 (0)
0