Skip to content

Commit 5a39161

Browse files
committed
Fix build warnings, to make CI work
1 parent 94f62b5 commit 5a39161

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

backend/src/cells.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,6 @@ fn floodfill(map: &MapModel, start: RoadID, neighbourhood: &Neighbourhood) -> Ce
177177
}
178178
}
179179

180-
fn is_private(road: &Road) -> bool {
180+
fn is_private(_road: &Road) -> bool {
181181
false
182182
}

backend/src/map_model.rs

+1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ pub struct Road {
7373

7474
pub struct Intersection {
7575
pub id: IntersectionID,
76+
#[allow(unused)]
7677
pub node: osm_reader::NodeID,
7778
pub point: Point,
7879
pub roads: Vec<RoadID>,

backend/src/render_cells.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,6 @@ fn color_cells(num_cells: usize, adjacencies: HashSet<(usize, usize)>) -> Vec<Co
307307

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

0 commit comments

Comments
 (0)