fix(CLI): set request value to call

Previously, even though the request was passed by reference, it was
copied and thus our changes never arrived in the call.

Now the API makes this clear by taking ownership, and the CLI code
sets the Request value lateron, explicitly.

Related to #76
This commit is contained in:
Sebastian Thiel
2015-04-25 13:25:00 +02:00
parent 6befdbc6fa
commit be7ccb085c
5 changed files with 11 additions and 9 deletions

View File

@@ -379,7 +379,7 @@ def activity_input_type(schemas, p):
if n == 'String':
n = 'str'
# pods are copied anyway
elif is_pod_property(p):
elif is_pod_property(p) or p.get(TREF):
return n
return '&%s' % n
@@ -535,7 +535,7 @@ def rust_copy_value_s(n, tn, p):
nc = n + '.clone()'
if tn == '&str':
nc = n + '.to_string()'
elif is_pod_property(p):
elif is_pod_property(p) or p.get(TREF):
nc = n
return nc