Skip to content

Commit

Permalink
Fix build warnings, to make CI work
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed Nov 16, 2024
1 parent 94f62b5 commit 5a39161
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/src/cells.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,6 @@ fn floodfill(map: &MapModel, start: RoadID, neighbourhood: &Neighbourhood) -> Ce
}
}

fn is_private(road: &Road) -> bool {
fn is_private(_road: &Road) -> bool {
false
}
1 change: 1 addition & 0 deletions backend/src/map_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ pub struct Road {

pub struct Intersection {
pub id: IntersectionID,
#[allow(unused)]
pub node: osm_reader::NodeID,
pub point: Point,
pub roads: Vec<RoadID>,
Expand Down
2 changes: 1 addition & 1 deletion backend/src/render_cells.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,6 @@ fn color_cells(num_cells: usize, adjacencies: HashSet<(usize, usize)>) -> Vec<Co

// TODO Bring in that geo PR
// TODO use it here
fn slice_linestring(linestring: &LineString, start: f64, end: f64) -> Option<LineString> {
fn slice_linestring(linestring: &LineString, _start: f64, _end: f64) -> Option<LineString> {
Some(linestring.clone())
}

0 comments on commit 5a39161

Please sign in to comment.