Use core over std in no_std dep

This commit is contained in:
Magnus Ulimoen 2021-03-25 17:18:25 +01:00
parent 9b5192b357
commit a81ba0365d
1 changed files with 1 additions and 1 deletions

View File

@ -281,7 +281,7 @@ fn ballistic() {
while t < 1.0 {
let mut next2 = next.clone();
integrate::<EulerMethod, Ball, _>(gravity, &next, &mut next2, &mut t, dt, &mut k);
std::mem::swap(&mut next, &mut next2);
core::mem::swap(&mut next, &mut next2);
}
let expected_vel = initial.v + g * t;
assert!((next.v - expected_vel).abs() < 1e-3);