mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user