mirror of
https://github.com/servo/servo.git
synced 2025-06-14 03:14:29 +00: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 = ")
|
||||
elif result is not None:
|
||||
call = CGWrapper(call, pre="result = ")
|
||||
else:
|
||||
call = CGWrapper(call, pre="let _: () = ")
|
||||
|
||||
call = CGWrapper(call)
|
||||
self.cgRoot.append(call)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue