mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Remove the declareResult argument to CGCallGenerator's constructor.
This commit is contained in:
parent
ad086ba7da
commit
eec2e10d9c
1 changed files with 2 additions and 2 deletions
|
@ -2386,7 +2386,7 @@ class CGCallGenerator(CGThing):
|
|||
"""
|
||||
def __init__(self, errorReport, arguments, argsPre, returnType,
|
||||
extendedAttributes, descriptorProvider, nativeMethodName,
|
||||
static, object="this", declareResult=True):
|
||||
static, object="this"):
|
||||
CGThing.__init__(self)
|
||||
|
||||
assert errorReport is None or isinstance(errorReport, CGThing)
|
||||
|
@ -2429,7 +2429,7 @@ class CGCallGenerator(CGThing):
|
|||
self.cgRoot.prepend(CGWrapper(result if result is not None else CGGeneric("()"),
|
||||
pre="let mut result_fallible: Result<", post=",Error>;"))
|
||||
|
||||
if result is not None and declareResult:
|
||||
if result is not None:
|
||||
result = CGWrapper(result, pre="let mut result: ", post=";")
|
||||
self.cgRoot.prepend(result)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue