diff options
| author | Crozet Sébastien <developer@crozet.re> | 2021-03-07 11:55:10 +0100 |
|---|---|---|
| committer | Crozet Sébastien <developer@crozet.re> | 2021-03-07 11:55:10 +0100 |
| commit | 4cb1f5c692f580483a7316c224380a6aaf74c679 (patch) | |
| tree | a51763c199b1d4c46780e33f5441f5307ac54c81 | |
| parent | bed47a82e706a13c22799fcf644753c69fdec6ad (diff) | |
| download | rapier-4cb1f5c692f580483a7316c224380a6aaf74c679.tar.gz rapier-4cb1f5c692f580483a7316c224380a6aaf74c679.tar.bz2 rapier-4cb1f5c692f580483a7316c224380a6aaf74c679.zip | |
Fix warning when targetting wasm.
| -rw-r--r-- | src/dynamics/solver/velocity_constraint.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dynamics/solver/velocity_constraint.rs b/src/dynamics/solver/velocity_constraint.rs index 8e70fb0..169f280 100644 --- a/src/dynamics/solver/velocity_constraint.rs +++ b/src/dynamics/solver/velocity_constraint.rs @@ -90,6 +90,7 @@ pub(crate) struct VelocityConstraintTangentPart { pub r: [Real; DIM - 1], } +#[cfg(not(target_arch = "wasm32"))] impl VelocityConstraintTangentPart { fn zero() -> Self { Self { |
