mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +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.
|
# TODO imports to cover descriptors, etc.
|
||||||
|
|
||||||
def _useString(imports):
|
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,
|
CGWrapper.__init__(self, child,
|
||||||
declarePre=_useString(sorted(declareImports)))
|
declarePre=_useString(sorted(declareImports)))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue