no need to pre-format rust dependencies

This commit is contained in:
Alan Hamlett 2018-03-13 01:07:51 -07:00
parent 50bbdb2030
commit 8fcfcb49d7

View file

@ -41,14 +41,8 @@ class RustParser(TokenParser):
def _process_name(self, token, content):
if self.state == 'extern crate':
self.append(self._format(content))
self.append(content)
self.state = None
def _process_other(self, token, content):
self.state = None
def _format(self, content):
content = content.strip()
if content.startswith('"') or content.startswith("'"):
return None
return content