From eec2e10d9c4247d3a4eb52d442aea230a6f24ab0 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Thu, 20 Mar 2014 20:34:52 +0100 Subject: [PATCH] Remove the declareResult argument to CGCallGenerator's constructor. --- src/components/script/dom/bindings/codegen/CodegenRust.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/script/dom/bindings/codegen/CodegenRust.py b/src/components/script/dom/bindings/codegen/CodegenRust.py index 2895c66a677..2f341fcc39e 100644 --- a/src/components/script/dom/bindings/codegen/CodegenRust.py +++ b/src/components/script/dom/bindings/codegen/CodegenRust.py @@ -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)