mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
parent
76f541f06f
commit
da5d6cc6e1
1 changed files with 1 additions and 1 deletions
|
@ -2142,7 +2142,7 @@ class CGImports(CGWrapper):
|
|||
# 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)))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue