Skip to content

Commit

Permalink
upgraded to rustc 1.35, fixing a few cases of rust-lang/rust#59159
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed Jun 9, 2019
1 parent 903d339 commit c76738a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion map_model/src/make/initial/merge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ pub fn short_roads(map: &mut InitialMap, timer: &mut Timer) {
.values()
.find(|r| r.trimmed_center_pts.length() < Distance::meters(5.0))
{
look_at.insert(merge(map, r.id, timer));
let id = r.id;
look_at.insert(merge(map, id, timer));
} else {
break;
}
Expand Down
3 changes: 2 additions & 1 deletion sim/src/make/scenario.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,11 +351,12 @@ impl SpawnOverTime {
timer,
) {
reserved_cars.insert(parked_car.vehicle.id);
let spot = parked_car.spot;
sim.schedule_trip(
spawn_time,
TripSpec::UsingParkedCar {
start: SidewalkSpot::building(from_bldg, map),
spot: parked_car.spot,
spot,
goal,
ped_speed: Scenario::rand_ped_speed(rng),
},
Expand Down

0 comments on commit c76738a

Please sign in to comment.