Skip to content

Commit 95218b7

Browse files
committed
Fix compilation errors/warnings in tests
1 parent 72fa4bd commit 95218b7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/bound.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ extern crate collision;
22

33
use collision::PlaneBound;
44

5-
fn _box(_: Box<PlaneBound<f32>>) {}
5+
fn _box(_: Box<dyn PlaneBound<f32>>) {}
66

77
#[test]
88
fn bound_box() {}

tests/dbvt.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ extern crate cgmath;
22
extern crate collision;
33
extern crate rand;
44

5-
use cgmath::{Deg, PerspectiveFov, Point2, Point3, Vector2, Vector3};
65
use cgmath::prelude::*;
7-
use collision::{Aabb2, Aabb3, Frustum, Projection, Ray2, Relation};
6+
use cgmath::{Deg, PerspectiveFov, Point2, Point3, Vector2, Vector3};
87
use collision::dbvt::*;
98
use collision::prelude::*;
9+
use collision::{Aabb2, Aabb3, Frustum, Projection, Ray2, Relation};
1010
use rand::Rng;
1111

1212
#[derive(Debug, Clone)]
@@ -122,7 +122,7 @@ fn test_add_20() {
122122
let mut tree = DynamicBoundingVolumeTree::<Value2>::new();
123123
let mut rng = rand::thread_rng();
124124
for i in 0..20 {
125-
let offset = rng.gen_range(-10., 10.);
125+
let offset = rng.gen_range(-10f32..10f32);
126126
tree.insert(Value2::new(
127127
i,
128128
aabb2(offset + 0.1, offset + 0.1, offset + 0.3, offset + 0.3),

0 commit comments

Comments
 (0)