mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
fix clippy warnings in codegen (#33781)
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
This commit is contained in:
parent
f9a06d62a2
commit
c6d305fbb3
1 changed files with 2 additions and 2 deletions
|
@ -2761,7 +2761,7 @@ class CGAbstractMethod(CGThing):
|
||||||
if self.returnType == "void":
|
if self.returnType == "void":
|
||||||
pre = "wrap_panic(&mut || {\n"
|
pre = "wrap_panic(&mut || {\n"
|
||||||
post = "\n})"
|
post = "\n})"
|
||||||
elif "return" not in body.define():
|
elif "return" not in body.define() or self.name.startswith("_constructor"):
|
||||||
pre = (
|
pre = (
|
||||||
"let mut result = false;\n"
|
"let mut result = false;\n"
|
||||||
"wrap_panic(&mut || result = {\n"
|
"wrap_panic(&mut || result = {\n"
|
||||||
|
@ -6254,7 +6254,7 @@ let global = GlobalScope::from_object(JS_CALLEE(*cx, vp).to_object());
|
||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
args = [
|
args = [
|
||||||
"&global",
|
"global",
|
||||||
"Some(desired_proto.handle())",
|
"Some(desired_proto.handle())",
|
||||||
"CanGc::note()"
|
"CanGc::note()"
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue