diff --git a/src/bin/cargo-fmt.rs b/src/bin/cargo-fmt.rs index 53e697d76ac..f760f41a0f5 100644 --- a/src/bin/cargo-fmt.rs +++ b/src/bin/cargo-fmt.rs @@ -259,10 +259,10 @@ fn extract_target_from_package(package: &Value) -> Option> { Some(targets) } -fn filter_packages_with_hitlist<'a>( +fn filter_packages_with_hitlist( packages: Vec, - workspace_hitlist: &'a WorkspaceHitlist, -) -> Result, &'a String> { + workspace_hitlist: &WorkspaceHitlist, +) -> Result, &String> { let some_hitlist: Option> = workspace_hitlist.get_some().map(HashSet::from_iter); if some_hitlist.is_none() {