mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 20:54:13 +00:00
intenral: small improvements to compile time
AsRef-polymorphism has compile-time cost.
This commit is contained in:
parent
c27fdc75fa
commit
93e3659194
@ -119,7 +119,7 @@ impl ProjectManifest {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn discover_all(paths: &[impl AsRef<AbsPath>]) -> Vec<ProjectManifest> {
|
||||
pub fn discover_all(paths: &[AbsPathBuf]) -> Vec<ProjectManifest> {
|
||||
let mut res = paths
|
||||
.iter()
|
||||
.filter_map(|it| ProjectManifest::discover(it.as_ref()).ok())
|
||||
|
Loading…
Reference in New Issue
Block a user