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 a8fdba4 commit b57d17bCopy full SHA for b57d17b
dylint/src/lib.rs
@@ -266,15 +266,13 @@ where
266
for<'a> &'a I: IntoIterator<Item = &'a T>,
267
T: Clone,
268
{
269
- toolchain_map
270
- .iter()
271
- .flat_map(|(toolchain, values)| {
272
- values
273
- .into_iter()
274
- .map(|value| (toolchain.clone(), value.clone()))
275
- .collect::<Vec<_>>()
276
- })
277
- .collect()
+ let mut result = Vec::new();
+ for (toolchain, values) in toolchain_map {
+ for value in values {
+ result.push((toolchain.clone(), value.clone()));
+ }
+ result
278
}
279
280
fn name_as_path(name: &str, as_path_only: bool) -> Result<Option<(String, PathBuf)>> {
0 commit comments