-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Description
pub fn strip_prefix<'a, P: ?Sized>(
&'a self,
base: &'a P // <=== ??? a reference?
) -> Result<&'a Path, StripPrefixError>
where P: AsRef<Path>,
This can clearly be generalized to
pub fn strip_prefix<'a, P>(
&'a self,
base: P
) -> Result<&'a Path, StripPrefixError>
where P: AsRef<Path>,
(Note: Like many similar attempts to "generalize" function signatures, this is a potentially breaking change due to potential regressions in type inference)
stepancheg
Metadata
Metadata
Assignees
Labels
C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.