mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Force infallible binding methods to return void.(fixes #1933)
This commit is contained in:
parent
6040271db3
commit
1abdd9c526
1 changed files with 2 additions and 0 deletions
|
@ -2461,6 +2461,8 @@ class CGCallGenerator(CGThing):
|
||||||
call = CGWrapper(call, pre="result_fallible = ")
|
call = CGWrapper(call, pre="result_fallible = ")
|
||||||
elif result is not None:
|
elif result is not None:
|
||||||
call = CGWrapper(call, pre="result = ")
|
call = CGWrapper(call, pre="result = ")
|
||||||
|
else:
|
||||||
|
call = CGWrapper(call, pre="let _: () = ")
|
||||||
|
|
||||||
call = CGWrapper(call)
|
call = CGWrapper(call)
|
||||||
self.cgRoot.append(call)
|
self.cgRoot.append(call)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue