Skip to content

Commit

Permalink
Merge pull request #28 from Bytekeeper/dependabot/cargo/derive_more-1…
Browse files Browse the repository at this point in the history
….0.0

Bump derive_more from 0.99.17 to 1.0.0
  • Loading branch information
Bytekeeper authored Oct 21, 2024
2 parents 73b0cf2 + 333e55d commit 9415096
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 30 deletions.
38 changes: 12 additions & 26 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ winapi = { version = "0.3", features = ["winbase", "memoryapi", "handleapi"] }
memchr = "2.7"
num-traits = "0.2"
num-derive = "0.4"
derive_more = "0.99"
derive_more = { version = "1.0", features = ["full"] }
rstar = "0.12"
itertools="0.13"
ahash = "0.8"
Expand Down
2 changes: 1 addition & 1 deletion bwapi_wrapper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ targets = ["x86_64-pc-windows-msvc"]
[dependencies]
num-traits = "0.2"
num-derive = "0.4"
derive_more = "0.99"
derive_more = { version = "1.0", features = ["full"] }


[build-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions bwapi_wrapper/src/position.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
use crate::UnitType;
use core::ops::{Add, Div, DivAssign, Index, IndexMut, Mul, MulAssign, Sub};
use core::ops::{Div, DivAssign, Index, IndexMut, Mul, MulAssign};
use derive_more::{Add, AddAssign, Display, From, Sub, SubAssign};

#[derive(
Default, Debug, Display, Copy, Clone, Eq, PartialEq, Add, Sub, AddAssign, SubAssign, From, Hash,
)]
#[display(fmt = "Position<{}> ({}, {})", N, x, y)]
#[display("Position<{}> ({}, {})", N, x, y)]
pub struct ScaledPosition<const N: i32> {
pub x: i32,
pub y: i32,
Expand Down

0 comments on commit 9415096

Please sign in to comment.