From ace3f0d2852348a21d6b5bab7dfd655c237becb6 Mon Sep 17 00:00:00 2001 From: Dustin Carlino Date: Mon, 17 Jun 2019 12:12:59 -0700 Subject: [PATCH] remove Debug trait from Map and pathfinder -- not used in a long time --- map_model/src/map.rs | 2 +- map_model/src/pathfind/driving.rs | 2 +- map_model/src/pathfind/mod.rs | 2 +- map_model/src/pathfind/walking.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/map_model/src/map.rs b/map_model/src/map.rs index 910d3ea0e7..784af66388 100644 --- a/map_model/src/map.rs +++ b/map_model/src/map.rs @@ -13,7 +13,7 @@ use serde_derive::{Deserialize, Serialize}; use std::collections::{BTreeMap, BTreeSet, HashSet, VecDeque}; use std::io; -#[derive(Serialize, Deserialize, Debug)] +#[derive(Serialize, Deserialize)] pub struct Map { roads: Vec, lanes: Vec, diff --git a/map_model/src/pathfind/driving.rs b/map_model/src/pathfind/driving.rs index 7c799d50f0..65a3cfdf8a 100644 --- a/map_model/src/pathfind/driving.rs +++ b/map_model/src/pathfind/driving.rs @@ -8,7 +8,7 @@ use std::collections::{BTreeMap, BTreeSet, VecDeque}; // TODO Make the graph smaller by considering RoadID, or even (directed?) bundles of roads based on // OSM way. -#[derive(Serialize, Deserialize, Debug)] +#[derive(Serialize, Deserialize)] pub struct VehiclePathfinder { graph: StableGraph, #[serde( diff --git a/map_model/src/pathfind/mod.rs b/map_model/src/pathfind/mod.rs index 2ecc47237b..cf2a542627 100644 --- a/map_model/src/pathfind/mod.rs +++ b/map_model/src/pathfind/mod.rs @@ -313,7 +313,7 @@ fn validate(map: &Map, steps: &Vec) { } } -#[derive(Serialize, Deserialize, Debug)] +#[derive(Serialize, Deserialize)] pub struct Pathfinder { car_graph: VehiclePathfinder, bike_graph: VehiclePathfinder, diff --git a/map_model/src/pathfind/walking.rs b/map_model/src/pathfind/walking.rs index 3431ef1566..15843779cc 100644 --- a/map_model/src/pathfind/walking.rs +++ b/map_model/src/pathfind/walking.rs @@ -10,7 +10,7 @@ use std::collections::BTreeMap; // TODO Make the graph smaller by considering RoadID, or even (directed?) bundles of roads based on // OSM way. -#[derive(Serialize, Deserialize, Debug)] +#[derive(Serialize, Deserialize)] pub struct SidewalkPathfinder { graph: Graph, #[serde(