mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
clippy: Fix all errors in components/script
(#31911)
* clippy: Fix errors in components/script/dom * clippy: fixed remaining errors in components/script
This commit is contained in:
parent
eccb60e548
commit
f183170786
8 changed files with 57 additions and 57 deletions
|
@ -519,6 +519,7 @@ impl WorkerGlobalScope {
|
|||
/// Process a single event as if it were the next event
|
||||
/// in the queue for this worker event-loop.
|
||||
/// Returns a boolean indicating whether further events should be processed.
|
||||
#[allow(unsafe_code)]
|
||||
pub fn process_event(&self, msg: CommonScriptMsg) -> bool {
|
||||
if self.is_closing() {
|
||||
return false;
|
||||
|
@ -528,7 +529,7 @@ impl WorkerGlobalScope {
|
|||
CommonScriptMsg::CollectReports(reports_chan) => {
|
||||
let cx = self.get_cx();
|
||||
let path_seg = format!("url({})", self.get_url());
|
||||
let reports = get_reports(*cx, path_seg);
|
||||
let reports = unsafe { get_reports(*cx, path_seg) };
|
||||
reports_chan.send(reports);
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue