clippy: Rename RequestId::new() to RequestId::next() and fix one more issue in servo/lib.rs (#33881)

* clippy: fix clippy warnings in components/

Signed-off-by: jahielkomu <ktumuhairwe24@gmail.com>

* Addressed changes from the PR

Signed-off-by: jahielkomu <ktumuhairwe24@gmail.com>

---------

Signed-off-by: jahielkomu <ktumuhairwe24@gmail.com>
This commit is contained in:
komuhangi 2024-10-18 12:45:40 +03:00 committed by GitHub
parent 14cfcda3b3
commit ff374c1428
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 4 deletions

View file

@ -4185,7 +4185,7 @@ impl ScriptThread {
None => vec![],
};
let dummy_request_id = RequestId::new();
let dummy_request_id = RequestId::next();
context.process_response(dummy_request_id, Ok(FetchMetadata::Unfiltered(meta)));
context.process_response_chunk(dummy_request_id, chunk);
context.process_response_eof(
@ -4209,7 +4209,7 @@ impl ScriptThread {
let chunk = load_data.srcdoc.into_bytes();
let dummy_request_id = RequestId::new();
let dummy_request_id = RequestId::next();
context.process_response(dummy_request_id, Ok(FetchMetadata::Unfiltered(meta)));
context.process_response_chunk(dummy_request_id, chunk);
context.process_response_eof(