Skip to content

Commit

Permalink
Allow unused_variable in Codegen output.
Browse files Browse the repository at this point in the history
Issue #386
  • Loading branch information
Meta-phaze committed Apr 20, 2013
1 parent 76f541f commit da5d6cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/servo/dom/bindings/codegen/CodegenRust.py
Expand Up @@ -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)))

Expand Down

0 comments on commit da5d6cc

Please sign in to comment.