Make the result and result_fallible variables immutable.

This commit is contained in:
Ms2ger 2014-03-20 21:06:55 +01:00
parent eec2e10d9c
commit 322893009d

View file

@ -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: