mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
Omit special case for type inference; fixes #180
This commit is contained in:
@@ -99,9 +99,9 @@ Before anything else happens, be sure we publish the latest APIs to cargo.
|
||||
```bash
|
||||
# We want as many publishes to work as possible ... -k keeps going on error.
|
||||
# sometimes uploads fail spuriously, and just need to be retried.
|
||||
$ make publish-api -k
|
||||
$ make publish-api publish-cli -k
|
||||
# another attempt to do this should not do actual work
|
||||
$ make publish-api
|
||||
$ make publish-api publish-cli
|
||||
# all clear ? Please proceed ... .
|
||||
```
|
||||
|
||||
|
||||
@@ -352,8 +352,6 @@ def to_rust_type(schemas, sn, pn, t, allow_optionals=True, _is_recursive=False):
|
||||
return wrap_type("%s<String, %s>" % (rust_type, nested_type(t)))
|
||||
else:
|
||||
return wrap_type(nested_type(t))
|
||||
elif t['type'] == 'string' and 'Count' in pn:
|
||||
rust_type = 'i64'
|
||||
elif rust_type == USE_FORMAT:
|
||||
rust_type = TYPE_MAP[t['format']]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user