mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Make the result and result_fallible variables immutable.
This commit is contained in:
parent
eec2e10d9c
commit
322893009d
1 changed files with 2 additions and 2 deletions
|
@ -2427,10 +2427,10 @@ class CGCallGenerator(CGThing):
|
|||
|
||||
if isFallible:
|
||||
self.cgRoot.prepend(CGWrapper(result if result is not None else CGGeneric("()"),
|
||||
pre="let mut result_fallible: Result<", post=",Error>;"))
|
||||
pre="let result_fallible: Result<", post=",Error>;"))
|
||||
|
||||
if result is not None:
|
||||
result = CGWrapper(result, pre="let mut result: ", post=";")
|
||||
result = CGWrapper(result, pre="let result: ", post=";")
|
||||
self.cgRoot.prepend(result)
|
||||
|
||||
if isFallible:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue