title: How to fix this clippy warning (needless collect)
body: <p>I have a hard time fixing the <a href="https://rust-lang.github.io/rust-clippy/master/#needless_collect" rel="nofollow noreferrer">needless collect clippy warning</a>.</p>
  <pre class="lang-rust prettyprint-override"><code>pub fn import_selection(packages: &amp;mut Vec&lt;PackageRow&gt;) -&gt; io::Result&lt;()&gt; {
      let file = fs::File::open(&quot;uad_exported_selection.txt&quot;)?;
      let reader = BufReader::new(file);
      let imported_selection: Vec&lt;String&gt; = reader
          .lines()
          .map(|l| l.expect(&quot;Could not exported selection&quot;))
          .collect();
  
      for (i,p) in packages.iter_mut().enumerate() {
          if imported_selection.contains(&amp;p.name) {
              p.selected = true;
              ...
          } else {
              p.selected = false;
          }
      }
      Ok(())
  }
  </code></pre>
  <p>I tried to use <code>any()</code> directly from the iterator, it compiles but doesn't seems to work (it doesn't find anything when it should)</p>
  <p>Is it really possible to remove the collect in this case?</p>