File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ pub enum Filter {
2323}
2424
2525impl Filter {
26- fn roads < ' a > ( & ' a self , streets : & ' a StreetNetwork ) -> Box < dyn Iterator < Item = & Road > + ' a > {
26+ fn roads < ' a > ( & ' a self , streets : & ' a StreetNetwork ) -> Box < dyn Iterator < Item = & ' a Road > + ' a > {
2727 match self {
2828 Filter :: All => Box :: new ( streets. roads . values ( ) ) ,
2929 Filter :: Filtered ( ref roads, _) => Box :: new ( roads. iter ( ) . map ( |r| & streets. roads [ r] ) ) ,
@@ -33,7 +33,7 @@ impl Filter {
3333 fn intersections < ' a > (
3434 & ' a self ,
3535 streets : & ' a StreetNetwork ,
36- ) -> Box < dyn Iterator < Item = & Intersection > + ' a > {
36+ ) -> Box < dyn Iterator < Item = & ' a Intersection > + ' a > {
3737 match self {
3838 Filter :: All => Box :: new ( streets. intersections . values ( ) ) ,
3939 Filter :: Filtered ( _, ref intersections) => {
You can’t perform that action at this time.
0 commit comments