Swap Vec<PredicateObligation> to type alias
This commit is contained in:
parent
1ac72b94bc
commit
7ec06b0d1d
33 changed files with 250 additions and 215 deletions
|
@ -402,9 +402,10 @@ impl<O: ForestObligation> ObligationForest<O> {
|
|||
}
|
||||
|
||||
/// Returns the set of obligations that are in a pending state.
|
||||
pub fn map_pending_obligations<P, F>(&self, f: F) -> Vec<P>
|
||||
pub fn map_pending_obligations<P, F, R>(&self, f: F) -> R
|
||||
where
|
||||
F: Fn(&O) -> P,
|
||||
R: FromIterator<P>,
|
||||
{
|
||||
self.nodes
|
||||
.iter()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue