File tree Expand file tree Collapse file tree 4 files changed +398
-1
lines changed Expand file tree Collapse file tree 4 files changed +398
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ mod standard;
2626mod static_expression;
2727mod target;
2828
29+ // @TODO consider moving facade into analysis
30+ pub ( crate ) use { lock:: ReadGuard , root:: AnalysisData } ;
31+
2932#[ cfg( test) ]
3033pub ( crate ) mod tests;
3134pub ( crate ) use root:: { Library , LockedUnit } ;
Original file line number Diff line number Diff line change @@ -261,10 +261,11 @@ impl Library {
261261 } )
262262 }
263263
264+ // @TODO optimize O() complexity
264265 pub ( crate ) fn secondary_units < ' a > (
265266 & ' a self ,
266267 primary : & ' a Symbol ,
267- ) -> impl Iterator < Item = & ' a LockedUnit > {
268+ ) -> impl Iterator < Item = & ' a LockedUnit > + ' a {
268269 self . units . iter ( ) . filter_map ( move |( key, value) | match key {
269270 UnitKey :: Secondary ( sym, _) if primary == sym => Some ( value) ,
270271 _ => None ,
You can’t perform that action at this time.
0 commit comments