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

Remove unused unsafe #396

Merged
merged 2 commits into from Apr 23, 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

Add unused_unsafe attribute to generated bindings.

  • Loading branch information
metajack committed Apr 23, 2013
commit 4aec737c11f377df90199f0a5605f53600225221
@@ -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,unused_variable)];' + ''.join(['use %s;\n' % i for i in imports]) + '\n'
return '#[allow(unused_imports,unused_variable,unused_unsafe)];' + ''.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.