Fix use tree desugaring

This commit is contained in:
Florian Diebold 2019-01-08 14:39:55 +01:00
parent 562b448f9e
commit d4b44a092f
2 changed files with 30 additions and 1 deletions

View file

@ -150,7 +150,7 @@ fn convert_path(prefix: Option<Path>, path: &ast::Path) -> Option<Path> {
let prefix = if let Some(qual) = path.qualifier() {
Some(convert_path(prefix, qual)?)
} else {
None
prefix
};
let segment = path.segment()?;
let res = match segment.kind()? {