Skip to content

Commit

Permalink
Disable nightly clippy, fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
shanemadden committed Mar 18, 2024
1 parent 25dabc0 commit 423701a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ jobs:
matrix:
rust:
- stable
- nightly
# temporarily disabled due to https://github.com/rust-lang/rust-clippy/issues/12377
#- nightly
steps:
- name: Checkout sources
uses: actions/checkout@v2
Expand Down
5 changes: 3 additions & 2 deletions src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ mod types;
//pub mod look; // TODO: most/all of this is World specific
//pub mod find; // TODO: most/all of this is World specific

pub use self::{small_enums::*, types::*, numbers::*};
//pub use self::{extra::*, look::*, recipes::FactoryRecipe}; // TODO: most/all of this is World specific
pub use self::{numbers::*, small_enums::*, types::*};
//pub use self::{extra::*, look::*, recipes::FactoryRecipe}; // TODO: most/all
// of this is World specific

// pub use self::find::{FindConstant, Find, CREEPS, MY_CREEPS, HOSTILE_CREEPS,
// SOURCES_ACTIVE, SOURCES, DROPPED_RESOURCES, STRUCTURES, MY_STRUCTURES,
Expand Down
24 changes: 15 additions & 9 deletions src/constants/numbers.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@

pub const BODYPART_HITS: u32 = 100;

pub const RANGED_ATTACK_POWER: u32 = 10;
pub const RANGED_ATTACK_POWER: u32 = 10;

pub const RANGED_ATTACK_DISTANCE_RATE: &[f32;4] = &[1.0_f32, 1.0_f32, 0.4_f32, 0.1_f32];
pub const RANGED_ATTACK_DISTANCE_RATE: &[f32; 4] = &[1.0_f32, 1.0_f32, 0.4_f32, 0.1_f32];

pub const ATTACK_POWER: u32 = 30;
pub const ATTACK_POWER: u32 = 30;

pub const HEAL_POWER: u32 = 12;
pub const HEAL_POWER: u32 = 12;

pub const RANGED_HEAL_POWER: u32 = 4;
pub const RANGED_HEAL_POWER: u32 = 4;

pub const CARRY_CAPACITY: u32 = 50;

Expand All @@ -25,7 +24,14 @@ pub const HARVEST_POWER: u32 = 2;

pub const BUILD_POWER: u32 = 5;

pub const OBSTACLE_OBJECT_TYPES: &[&str;6] = &["creep","tower","constructedWall","spawn","extension","link"];
pub const OBSTACLE_OBJECT_TYPES: &[&str; 6] = &[
"creep",
"tower",
"constructedWall",
"spawn",
"extension",
"link",
];

pub const TOWER_ENERGY_COST: u32 = 10;

Expand Down Expand Up @@ -53,9 +59,9 @@ pub const MAX_CREEP_SIZE: u32 = 50;

pub const CREEP_SPAWN_TIME: u32 = 3;

pub const RESOURCE_ENERGY: &str = "energy";
pub const RESOURCE_ENERGY: &str = "energy";

pub const RESOURCES_ALL: &[&str;1] = &[RESOURCE_ENERGY];
pub const RESOURCES_ALL: &[&str; 1] = &[RESOURCE_ENERGY];

pub const SOURCE_ENERGY_REGEN: u32 = 10;

Expand Down

0 comments on commit 423701a

Please sign in to comment.