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 @@ 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())
|
||||
|
Loading…
Reference in New Issue
Block a user