improv: Apply suggestions from clippy

This commit is contained in:
Michael Aaron Murphy 2021-08-16 13:27:18 +02:00
parent aa17efd34d
commit 690f3257bd

View file

@ -1,6 +1,6 @@
use std::path::PathBuf;
pub fn find<'a>(name: &'a str) -> impl Iterator<Item = PathBuf> + 'a {
pub fn find(name: &'_ str) -> impl Iterator<Item = PathBuf> + '_ {
crate::plugin_paths()
.filter_map(|path| path.read_dir().ok())
.flat_map(move |dir| {