Make ModPath's representation private

This commit is contained in:
Jonas Schievink
2021-02-04 20:49:24 +01:00
parent 36191543a6
commit 5d99ba1d9a
18 changed files with 70 additions and 51 deletions

View File

@@ -1729,7 +1729,7 @@ fn fill_resolve_data(
) -> Option<()> {
let import_edit = item.import_to_add()?;
let full_import_path = import_edit.import_path.to_string();
let imported_name = import_edit.import_path.segments.clone().pop()?.to_string();
let imported_name = import_edit.import_path.segments().last()?.to_string();
*resolve_data = Some(
to_value(CompletionResolveData {