ast: add gens for ty and impl, raw ptr types, make fn return value non-optional
This commit is contained in:
@@ -46,7 +46,7 @@ impl Fold for NormalizePaths {
|
||||
|
||||
if !absolute {
|
||||
for segment in self.path.parts.iter().rev() {
|
||||
tree = UseTree::Path(segment.clone(), Box::new(tree))
|
||||
tree = UseTree::Path(*segment, Box::new(tree))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user