Skip to content

Commit c2574d3

Browse files
committed
Fix lifetime warning in newer rustc
1 parent 79ed2bb commit c2574d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

osm2streets/src/render/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pub enum Filter {
2323
}
2424

2525
impl 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) => {

0 commit comments

Comments
 (0)