no need to pre-format rust dependencies
This commit is contained in:
parent
50bbdb2030
commit
8fcfcb49d7
1 changed files with 1 additions and 7 deletions
|
@ -41,14 +41,8 @@ class RustParser(TokenParser):
|
||||||
|
|
||||||
def _process_name(self, token, content):
|
def _process_name(self, token, content):
|
||||||
if self.state == 'extern crate':
|
if self.state == 'extern crate':
|
||||||
self.append(self._format(content))
|
self.append(content)
|
||||||
self.state = None
|
self.state = None
|
||||||
|
|
||||||
def _process_other(self, token, content):
|
def _process_other(self, token, content):
|
||||||
self.state = None
|
self.state = None
|
||||||
|
|
||||||
def _format(self, content):
|
|
||||||
content = content.strip()
|
|
||||||
if content.startswith('"') or content.startswith("'"):
|
|
||||||
return None
|
|
||||||
return content
|
|
||||||
|
|
Loading…
Reference in a new issue