Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Includes unused_variable in Codegen #387

Merged
merged 2 commits into from Apr 20, 2013
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Next

Allow unused_variable in Codegen output.

Issue #386
  • Loading branch information
Meta-phaze committed Apr 20, 2013
commit da5d6cc6e1a7ab82094345b0f4eb3d7206437c0a
@@ -2142,7 +2142,7 @@ def __init__(self, descriptors, dictionaries, declareImports, defineImports, chi
# TODO imports to cover descriptors, etc.

def _useString(imports):
return '#[allow(unused_imports)];' + ''.join(['use %s;\n' % i for i in imports]) + '\n'
return '#[allow(unused_imports,unused_variable)];' + ''.join(['use %s;\n' % i for i in imports]) + '\n'
CGWrapper.__init__(self, child,
declarePre=_useString(sorted(declareImports)))

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.