Rollup merge of #56747 - ljedrz:remove_box_from_target, r=zackmdavis
target: remove Box returned by get_targets
This commit is contained in:
commit
3a9fa9b66a
1 changed files with 3 additions and 3 deletions
|
@ -254,12 +254,12 @@ macro_rules! supported_targets {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn get_targets() -> Box<dyn Iterator<Item=String>> {
|
||||
Box::new(TARGETS.iter().filter_map(|t| -> Option<String> {
|
||||
pub fn get_targets() -> impl Iterator<Item = String> {
|
||||
TARGETS.iter().filter_map(|t| -> Option<String> {
|
||||
load_specific(t)
|
||||
.and(Ok(t.to_string()))
|
||||
.ok()
|
||||
}))
|
||||
})
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
|
Loading…
Reference in a new issue