Omit special case for type inference; fixes #180

This commit is contained in:
Sebastian Thiel
2019-07-05 11:57:05 +08:00
parent e42ebc0c2b
commit 24b5faa417
2 changed files with 2 additions and 4 deletions

View File

@@ -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 ... .
```

View File

@@ -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']]