Remove an unnecessary lifetime
This commit is contained in:
parent
39ca7db7c8
commit
79c6f632ef
@ -259,10 +259,10 @@ fn extract_target_from_package(package: &Value) -> Option<Vec<Target>> {
|
|||||||
Some(targets)
|
Some(targets)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn filter_packages_with_hitlist<'a>(
|
fn filter_packages_with_hitlist(
|
||||||
packages: Vec<Value>,
|
packages: Vec<Value>,
|
||||||
workspace_hitlist: &'a WorkspaceHitlist,
|
workspace_hitlist: &WorkspaceHitlist,
|
||||||
) -> Result<Vec<Value>, &'a String> {
|
) -> Result<Vec<Value>, &String> {
|
||||||
let some_hitlist: Option<HashSet<&String>> =
|
let some_hitlist: Option<HashSet<&String>> =
|
||||||
workspace_hitlist.get_some().map(HashSet::from_iter);
|
workspace_hitlist.get_some().map(HashSet::from_iter);
|
||||||
if some_hitlist.is_none() {
|
if some_hitlist.is_none() {
|
||||||
|
Loading…
Reference in New Issue
Block a user