Remove an unnecessary lifetime

This commit is contained in:
topecongiro 2017-11-05 14:00:24 +09:00
parent 39ca7db7c8
commit 79c6f632ef

View File

@ -259,10 +259,10 @@ fn extract_target_from_package(package: &Value) -> Option<Vec<Target>> {
Some(targets)
}
fn filter_packages_with_hitlist<'a>(
fn filter_packages_with_hitlist(
packages: Vec<Value>,
workspace_hitlist: &'a WorkspaceHitlist,
) -> Result<Vec<Value>, &'a String> {
workspace_hitlist: &WorkspaceHitlist,
) -> Result<Vec<Value>, &String> {
let some_hitlist: Option<HashSet<&String>> =
workspace_hitlist.get_some().map(HashSet::from_iter);
if some_hitlist.is_none() {