Fix all warnings
This commit is contained in:
parent
34ff825ff0
commit
721e83006d
11 changed files with 57 additions and 71 deletions
|
|
@ -7,7 +7,6 @@ use crate::SinglePathfinder;
|
|||
use crate::examples::HashMapMap;
|
||||
use factorio_core::misc::Map;
|
||||
use factorio_core::{prelude::*, visualize::Visualize};
|
||||
use factorio_graph::priority_queue::PriorityQueue;
|
||||
use factorio_graph::priority_queue::PriorityQueueByKey;
|
||||
use factorio_graph::wheighted_graph::WheightedGraph;
|
||||
use factorio_graph::wheighted_graph::shortest_path::QueueObject;
|
||||
|
|
|
|||
|
|
@ -63,13 +63,14 @@ fn main() {
|
|||
|
||||
match args.input {
|
||||
PathfindingInputArg::EmptyDiagonal => {
|
||||
let lanes = 5;
|
||||
let connections = vec![Connection {
|
||||
start_pos: Position::new(0, -1),
|
||||
start_pos: Position::new(lanes - 1, -1),
|
||||
start_dir: Direction::Down,
|
||||
end_pos: Position::new(args.size - 1, args.size),
|
||||
end_dir: Direction::Down,
|
||||
beltspeed: factorio_core::beltoptions::Beltspeed::Normal,
|
||||
lanes: 1,
|
||||
lanes: lanes as usize,
|
||||
}];
|
||||
let map = EmptyMap {
|
||||
area: AABB::new(
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ struct SingleConnection {
|
|||
pub start_dir: Direction,
|
||||
pub end_pos: Position,
|
||||
pub end_dir: Direction,
|
||||
#[allow(dead_code)]
|
||||
pub beltspeed: Beltspeed,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue