We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4927d5 commit 0dc1742Copy full SHA for 0dc1742
crates/project_model/src/sysroot.rs
@@ -37,7 +37,7 @@ impl Sysroot {
37
pub fn public_deps(&self) -> impl Iterator<Item = (&'static str, SysrootCrate)> + '_ {
38
// core is added as a dependency before std in order to
39
// mimic rustcs dependency order
40
- vec!["core", "alloc", "std"].into_iter().filter_map(move |it| Some((it, self.by_name(it)?)))
+ ["core", "alloc", "std"].iter().filter_map(move |&it| Some((it, self.by_name(it)?)))
41
}
42
43
pub fn proc_macro(&self) -> Option<SysrootCrate> {
0 commit comments