Skip to content

Commit 11466c8

Browse files
bors[bot]ACGNnsj
andauthored
Merge #1031
1031: Remove Deprecated Usage of f32 and u32 r=chitoyuu a=ACGNnsj std::f32::EPSILON (core::f32::EPSILON) → f32::EPSILON std::u32::MIN (core::u32::MIN) → u32::MIN std::u32::MAX (core::u32::MAX) → u32::MAX Co-authored-by: ACGNnsj <[email protected]>
2 parents f284e30 + 70f785d commit 11466c8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/dodge-the-creeps/src/main_scene.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl Main {
9595
let mob_scene: Ref<RigidBody2D, _> = instance_scene(&self.mob);
9696

9797
let mut rng = rand::thread_rng();
98-
let offset = rng.gen_range(std::u32::MIN..std::u32::MAX);
98+
let offset = rng.gen_range(u32::MIN..u32::MAX);
9999

100100
mob_spawn_location.set_offset(offset.into());
101101

gdnative-core/src/core_types/geom/basis.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -697,9 +697,9 @@ mod tests {
697697

698698
let vector = Vector3::new(4.0, 5.0, 6.0);
699699

700-
assert!((basis.tdotx(vector) - 32.0).abs() < std::f32::EPSILON);
701-
assert!((basis.tdoty(vector) - 47.0).abs() < std::f32::EPSILON);
702-
assert!((basis.tdotz(vector) - 62.0).abs() < std::f32::EPSILON);
700+
assert!((basis.tdotx(vector) - 32.0).abs() < f32::EPSILON);
701+
assert!((basis.tdoty(vector) - 47.0).abs() < f32::EPSILON);
702+
assert!((basis.tdotz(vector) - 62.0).abs() < f32::EPSILON);
703703
}
704704

705705
#[test]

0 commit comments

Comments
 (0)