Closed
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)