Rename strip_path
to strip_path_generics
The new name is more descriptive of what the function does.
This commit is contained in:
parent
5f744f33f6
commit
f9f3c9feb4
2 changed files with 3 additions and 2 deletions
|
@ -156,7 +156,8 @@ pub(super) fn external_path(
|
|||
}
|
||||
}
|
||||
|
||||
crate fn strip_path(path: Path) -> Path {
|
||||
/// Remove the generic arguments from a path.
|
||||
crate fn strip_path_generics(path: Path) -> Path {
|
||||
let segments = path
|
||||
.segments
|
||||
.iter()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue