Skip to content

Commit 72fa4bd

Browse files
committed
Update to latest version of all dependencies
1 parent 122169f commit 72fa4bd

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Cargo.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@ keywords = ["gamedev", "cgmath", "collision"]
3232
name = "collision"
3333

3434
[dependencies]
35-
rand = "0.6"
36-
approx = "0.3" # Only for the macros; for all other instances use the re-exported cgmath ones.
37-
cgmath = "0.17"
35+
rand = "0.8"
36+
approx = "0.4" # Only for the macros; for all other instances use the re-exported cgmath ones.
37+
cgmath = "0.18"
3838
serde = { version = "1.0", optional = true, features = ["derive"] }
3939
bit-set = "0.5"
40-
smallvec = "0.6.1"
40+
smallvec = "1.6"
41+
num = { version = "0.3", optional = true, features = ["serde"] }
4142

42-
[target.'cfg(feature="serde")'.dependencies]
43-
cgmath = { version = "0.17", features = ["serde"] }
44-
num = { version = "0.2", features = ["serde"] }
43+
[features]
44+
use-serde = ["serde", "cgmath/serde", "num"]
4545

4646
[dev-dependencies]
47-
genmesh = "0.5"
47+
genmesh = "0.6"
4848

src/dbvt/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ where
900900

901901
// Only do rotations occasionally, as they are fairly expensive, and shouldn't be overused.
902902
// For most scenarios, the majority of shapes will not have moved, so this is fine.
903-
if rand::thread_rng().gen_range(0, 100) < PERFORM_ROTATION_PERCENTAGE {
903+
if rand::thread_rng().gen_range(0..100) < PERFORM_ROTATION_PERCENTAGE {
904904
self.rotate(node_index);
905905
}
906906
}

0 commit comments

Comments
 (0)