intenral: small improvements to compile time

AsRef-polymorphism has compile-time cost.
This commit is contained in:
Aleksey Kladov 2021-06-25 23:51:54 +03:00
parent c27fdc75fa
commit 93e3659194

View File

@ -119,7 +119,7 @@ fn find_cargo_toml_in_child_dir(entities: ReadDir) -> Vec<AbsPathBuf> {
}
}
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())