mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-01-05 11:06:05 +01:00
Don't call .to_string() on string values
This commit is contained in:
@@ -1222,8 +1222,9 @@ def string_impl(p):
|
||||
"byte": lambda x: f"::client::serde::urlsafe_base64::to_string(&{x})",
|
||||
"google-datetime": lambda x: f"::client::serde::datetime_to_string(&{x})",
|
||||
"date-time": lambda x: f"::client::serde::datetime_to_string(&{x})",
|
||||
"google-fieldmask": lambda x: f"{x}.to_string()"
|
||||
}.get(p.get("format"), lambda x: f"{x}.to_string()")
|
||||
"google-fieldmask": lambda x: f"{x}.to_string()",
|
||||
"string": lambda x: x
|
||||
}.get(p.get("format", p["type"]), lambda x: f"{x}.to_string()")
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user