Manually ignore warnings
This commit is contained in:
parent
0ced2c3c44
commit
f639082205
10 changed files with 26 additions and 27 deletions
|
|
@ -42,6 +42,7 @@ enum Tracing {
|
|||
}
|
||||
|
||||
#[derive(ValueEnum, Clone, Copy)]
|
||||
#[allow(clippy::enum_variant_names)]
|
||||
enum PathfinderArg {
|
||||
CaFbh,
|
||||
CaBh,
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ use crate::{
|
|||
station::{StationBasicSpec, basic_station},
|
||||
};
|
||||
use factorio_blueprint::abstraction::{
|
||||
Blueprint, ElectricPoleType, Entity, Quality, RailType, UndergroundType,
|
||||
Blueprint, ElectricPoleType, Entity, RailType, UndergroundType,
|
||||
};
|
||||
use factorio_core::{
|
||||
beltoptions::{Beltspeed, Belttype},
|
||||
|
|
|
|||
|
|
@ -223,6 +223,7 @@ pub fn one_loader(
|
|||
(b, -6)
|
||||
}
|
||||
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
pub fn basic_station(
|
||||
load: bool,
|
||||
locomotives: usize,
|
||||
|
|
|
|||
|
|
@ -161,11 +161,7 @@ pub fn assembly_line(
|
|||
};
|
||||
|
||||
let belt3 = (Direction::Right, input_belt1);
|
||||
let belt4 = if let Some(input_belt2) = input_belt2 {
|
||||
Some((Direction::Right, input_belt2))
|
||||
} else {
|
||||
None
|
||||
};
|
||||
let belt4 = input_belt2.map(|input_belt2| (Direction::Right, input_belt2));
|
||||
|
||||
for i in 0..(3 * (assembly_machines - 1) + 1) {
|
||||
if let Some((d, t)) = belt1 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue