mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Remove from Trusted::new an unnecessary argument
This commit is contained in:
parent
f4783a0ec3
commit
8acb21a594
12 changed files with 22 additions and 23 deletions
|
@ -249,13 +249,13 @@ impl AsyncResponseListener for ParserContext {
|
|||
};
|
||||
|
||||
let parser = parser.r();
|
||||
let win = parser.window();
|
||||
self.parser = Some(match parser {
|
||||
ParserRef::HTML(parser) => TrustedParser::HTML(
|
||||
Trusted::new(win.get_cx(),
|
||||
parser,
|
||||
self.script_chan.clone())),
|
||||
ParserRef::XML(parser) => TrustedParser::XML(Trusted::new(win.get_cx(), parser, self.script_chan.clone())),
|
||||
Trusted::new(parser,
|
||||
self.script_chan.clone())),
|
||||
ParserRef::XML(parser) => TrustedParser::XML(
|
||||
Trusted::new(parser,
|
||||
self.script_chan.clone())),
|
||||
});
|
||||
|
||||
match content_type {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue