Bump version #245
ci.yml
on: push
Matrix: Tests
Update Docs and Demos in GitHub Pages
14m 57s
Rustfmt
6s
CI
2s
deploy-ghpages
1m 29s
Annotations
176 warnings
Rustfmt
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Rustfmt
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
associated function `make_system` is never used:
demos/src/moving_platform.rs#L63
warning: associated function `make_system` is never used
--> demos/src/moving_platform.rs:63:8
|
54 | impl MovingPlatform {
| ------------------- associated function in this implementation
...
63 | fn make_system<V: Component>(
| ^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
|
unused variable: `setting_from_ui`:
demos/src/ui/mod.rs#L229
warning: unused variable: `setting_from_ui`
--> demos/src/ui/mod.rs:229:5
|
229 | setting_from_ui: Res<DemoUiPhysicsBackendActive>,
| ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_setting_from_ui`
|
unused variable: `app`:
demos/src/moving_platform.rs#L7
warning: unused variable: `app`
--> demos/src/moving_platform.rs:7:21
|
7 | fn build(&self, app: &mut App) {
| ^^^ help: if this is intentional, prefix it with an underscore: `_app`
|
= note: `#[warn(unused_variables)]` on by default
|
unused import: `make_update_plot_data_system`:
demos/src/ui/mod.rs#L22
warning: unused import: `make_update_plot_data_system`
--> demos/src/ui/mod.rs:22:22
|
22 | use self::plotting::{make_update_plot_data_system, plot_source_rolling_update};
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
returning the result of a `let` binding from a block:
demos/src/bin/platformer_3d.rs#L340
warning: returning the result of a `let` binding from a block
--> demos/src/bin/platformer_3d.rs:340:9
|
223 | / let command_altering_selectors = CommandAlteringSelectors::default()
224 | | // By default Tnua uses a raycast, but this could be a problem if the character stands
225 | | // just past the edge while part of its body is above the platform. To solve this, we
226 | | // need to cast a shape - which is physics-engine specific. We set the shape using a
... |
320 | | },
321 | | );
| |______________- unnecessary `let` binding
...
340 | command_altering_selectors
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return
= note: `#[warn(clippy::let_and_return)]` on by default
help: return the expression directly
|
223 ~
224 | #[cfg(feature = "rapier3d")]
...
241 | );
242 ~ CommandAlteringSelectors::default()
243 + // By default Tnua uses a raycast, but this could be a problem if the character stands
244 + // just past the edge while part of its body is above the platform. To solve this, we
245 + // need to cast a shape - which is physics-engine specific. We set the shape using a
246 + // component.
247 + .with_combo(
248 + "Sensor Shape",
249 + 1,
250 + &[
251 + ("no", |mut cmd| {
252 + #[cfg(feature = "rapier3d")]
253 + cmd.remove::<TnuaRapier3dSensorShape>();
254 + #[cfg(feature = "xpbd3d")]
255 + cmd.remove::<TnuaXpbd3dSensorShape>();
256 + }),
257 + ("flat (underfit)", |mut cmd| {
258 + #[cfg(feature = "rapier3d")]
259 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::cylinder(
260 + 0.0, 0.49,
261 + )));
262 + #[cfg(feature = "xpbd3d")]
263 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::cylinder(0.0, 0.49)));
264 + }),
265 + ("flat (exact)", |mut cmd| {
266 + #[cfg(feature = "rapier3d")]
267 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::cylinder(
268 + 0.0, 0.5,
269 + )));
270 + #[cfg(feature = "xpbd3d")]
271 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::cylinder(0.0, 0.5)));
272 + }),
273 + ("flat (overfit)", |mut cmd| {
274 + #[cfg(feature = "rapier3d")]
275 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::cylinder(
276 + 0.0, 0.51,
277 + )));
278 + #[cfg(feature = "xpbd3d")]
279 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::cylinder(0.0, 0.51)));
280 + }),
281 + ("ball (underfit)", |mut cmd| {
282 + #[cfg(feature = "rapier3d")]
283 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::ball(0.49)));
284 + #[cfg(feature = "xpbd3d")]
285 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::sphere(0.49)));
286 + }),
287 + ("ball (exact)", |mut cmd| {
288 + #[cfg(feature = "rapier3d")]
289 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::ball(0.5)));
290 + #[cfg(feature = "xpbd3d")]
291 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::sphere(0.5)));
292 + }),
293 + ],
294 + )
295 + .with_checkbox("Lock Tilt", true, |mut cmd, lock_tilt| {
296 + // Tnua will automatically apply angular impulses/forces to fix the tilt and make
297 + // the character stand upward, but it is also possible to just let the physics
298 + // engine prevent rotation (other than around the Y axis, for turning)
299 + if lock_tilt {
300 + #[cfg(feature = "rapier3d")]
301 + cmd.insert(
302 + rapier::LockedAxes::ROTATION_LOCKED_X
303 + | rapier::LockedAxes::ROTATION_LOCKED_Z,
304 + );
305 + #[cfg(feature = "xpbd3d")]
306 + cmd.insert(xpbd::LockedAxes::new().lock_rotation_x().lock_rotation_z());
307 + } else {
308 + #[cfg(feature = "rapier3d")]
309 + cmd.insert(rapier::LockedAxes::empty());
310 + #[cfg(feature = "xpbd3d")]
311 + cmd.insert(xpbd::LockedAxes::new());
312 + }
313 + })
314 + .with_checkbox(
315 + "Phase Through Collision Groups",
316 + true,
317 + |mut cmd, use_collision_groups| {
318 + #[cfg(feature = "rapier3d")]
319 + if use_collision_groups {
320 + cmd.insert(CollisionGroups {
321 + memberships: Group::GROUP_2,
322 + filters: Group::GROUP_2,
323 + });
324 + } else {
325 + cmd.insert(CollisionGroups {
326 + memberships: Group::ALL,
327 + filters: Group::ALL,
328 + });
329 + }
330 + #[cfg(feature = "xpbd3d")]
331 + {
332 + let player_layers: LayerMask = if use_collision_groups {
333 + [LayerNames::Player].into()
334 + } else {
335 + [LayerNames::Player, LayerNames::PhaseThrough].into()
336 + };
337 + cmd.insert(CollisionLayers::new(player_layers, player_layers));
338 + }
339 + },
340 + )
|
|
variable does not need to be mutable:
demos/src/bin/platformer_3d.rs#L298
warning: variable does not need to be mutable
--> demos/src/bin/platformer_3d.rs:298:18
|
298 | |mut cmd, use_collision_groups| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_3d.rs#L276
warning: variable does not need to be mutable
--> demos/src/bin/platformer_3d.rs:276:48
|
276 | .with_checkbox("Lock Tilt", true, |mut cmd, lock_tilt| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_3d.rs#L268
warning: variable does not need to be mutable
--> demos/src/bin/platformer_3d.rs:268:39
|
268 | ("ball (exact)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_3d.rs#L262
warning: variable does not need to be mutable
--> demos/src/bin/platformer_3d.rs:262:42
|
262 | ("ball (underfit)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_3d.rs#L254
warning: variable does not need to be mutable
--> demos/src/bin/platformer_3d.rs:254:41
|
254 | ("flat (overfit)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_3d.rs#L246
warning: variable does not need to be mutable
--> demos/src/bin/platformer_3d.rs:246:39
|
246 | ("flat (exact)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_3d.rs#L238
warning: variable does not need to be mutable
--> demos/src/bin/platformer_3d.rs:238:42
|
238 | ("flat (underfit)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_3d.rs#L232
warning: variable does not need to be mutable
--> demos/src/bin/platformer_3d.rs:232:29
|
232 | ("no", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` on by default
|
unused variable: `cmd`:
demos/src/bin/platformer_3d.rs#L344
warning: unused variable: `cmd`
--> demos/src/bin/platformer_3d.rs:344:59
|
344 | cmd.insert(TnuaCrouchEnforcer::new(0.5 * Vector3::Y, |cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `use_collision_groups`:
demos/src/bin/platformer_3d.rs#L298
warning: unused variable: `use_collision_groups`
--> demos/src/bin/platformer_3d.rs:298:27
|
298 | |mut cmd, use_collision_groups| {
| ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_use_collision_groups`
|
unused variable: `cmd`:
demos/src/bin/platformer_3d.rs#L298
warning: unused variable: `cmd`
--> demos/src/bin/platformer_3d.rs:298:22
|
298 | |mut cmd, use_collision_groups| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_3d.rs#L276
warning: unused variable: `cmd`
--> demos/src/bin/platformer_3d.rs:276:52
|
276 | .with_checkbox("Lock Tilt", true, |mut cmd, lock_tilt| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_3d.rs#L268
warning: unused variable: `cmd`
--> demos/src/bin/platformer_3d.rs:268:43
|
268 | ("ball (exact)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_3d.rs#L262
warning: unused variable: `cmd`
--> demos/src/bin/platformer_3d.rs:262:46
|
262 | ("ball (underfit)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_3d.rs#L254
warning: unused variable: `cmd`
--> demos/src/bin/platformer_3d.rs:254:45
|
254 | ("flat (overfit)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_3d.rs#L246
warning: unused variable: `cmd`
--> demos/src/bin/platformer_3d.rs:246:43
|
246 | ("flat (exact)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_3d.rs#L238
warning: unused variable: `cmd`
--> demos/src/bin/platformer_3d.rs:238:46
|
238 | ("flat (underfit)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_3d.rs#L232
warning: unused variable: `cmd`
--> demos/src/bin/platformer_3d.rs:232:33
|
232 | ("no", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
= note: `#[warn(unused_variables)]` on by default
|
returning the result of a `let` binding from a block:
demos/src/bin/platformer_2d.rs#L316
warning: returning the result of a `let` binding from a block
--> demos/src/bin/platformer_2d.rs:316:9
|
206 | / let command_altering_selectors = CommandAlteringSelectors::default()
207 | | // By default Tnua uses a raycast, but this could be a problem if the character stands
208 | | // just past the edge while part of its body is above the platform. To solve this, we
209 | | // need to cast a shape - which is physics-engine specific. We set the shape using a
... |
294 | | },
295 | | );
| |______________- unnecessary `let` binding
...
316 | command_altering_selectors
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return
= note: `#[warn(clippy::let_and_return)]` on by default
help: return the expression directly
|
206 ~
207 | #[cfg(feature = "rapier2d")]
...
226 | );
227 ~ CommandAlteringSelectors::default()
228 + // By default Tnua uses a raycast, but this could be a problem if the character stands
229 + // just past the edge while part of its body is above the platform. To solve this, we
230 + // need to cast a shape - which is physics-engine specific. We set the shape using a
231 + // component.
232 + .with_combo(
233 + "Sensor Shape",
234 + 1,
235 + &[
236 + ("Point", |mut cmd| {
237 + #[cfg(feature = "rapier2d")]
238 + cmd.remove::<TnuaRapier2dSensorShape>();
239 + #[cfg(feature = "xpbd2d")]
240 + cmd.remove::<TnuaXpbd2dSensorShape>();
241 + }),
242 + ("Flat (underfit)", |mut cmd| {
243 + #[cfg(feature = "rapier2d")]
244 + cmd.insert(TnuaRapier2dSensorShape(rapier::Collider::cuboid(0.49, 0.0)));
245 + #[cfg(feature = "xpbd2d")]
246 + cmd.insert(TnuaXpbd2dSensorShape(xpbd::Collider::rectangle(0.99, 0.0)));
247 + }),
248 + ("Flat (exact)", |mut cmd| {
249 + #[cfg(feature = "rapier2d")]
250 + cmd.insert(TnuaRapier2dSensorShape(rapier::Collider::cuboid(0.5, 0.0)));
251 + #[cfg(feature = "xpbd2d")]
252 + cmd.insert(TnuaXpbd2dSensorShape(xpbd::Collider::rectangle(1.0, 0.0)));
253 + }),
254 + ("flat (overfit)", |mut cmd| {
255 + #[cfg(feature = "rapier2d")]
256 + cmd.insert(TnuaRapier2dSensorShape(rapier::Collider::cuboid(0.51, 0.0)));
257 + #[cfg(feature = "xpbd2d")]
258 + cmd.insert(TnuaXpbd2dSensorShape(xpbd::Collider::rectangle(1.01, 0.0)));
259 + }),
260 + ("Ball (underfit)", |mut cmd| {
261 + #[cfg(feature = "rapier2d")]
262 + cmd.insert(TnuaRapier2dSensorShape(rapier::Collider::ball(0.49)));
263 + #[cfg(feature = "xpbd2d")]
264 + cmd.insert(TnuaXpbd2dSensorShape(xpbd::Collider::circle(0.49)));
265 + }),
266 + ("Ball (exact)", |mut cmd| {
267 + #[cfg(feature = "rapier2d")]
268 + cmd.insert(TnuaRapier2dSensorShape(rapier::Collider::ball(0.5)));
269 + #[cfg(feature = "xpbd2d")]
270 + cmd.insert(TnuaXpbd2dSensorShape(xpbd::Collider::circle(0.5)));
271 + }),
272 + ],
273 + )
274 + .with_checkbox("Lock Tilt", false, |mut cmd, lock_tilt| {
275 + // Tnua will automatically apply angular impulses/forces to fix the tilt and make
276 + // the character stand upward, but it is also possible to just let the physics
277 + // engine prevent rotation (other than around the Y axis, for turning)
278 + if lock_tilt {
279 + #[cfg(feature = "rapier2d")]
280 + cmd.insert(rapier::LockedAxes::ROTATION_LOCKED);
281 + #[cfg(feature = "xpbd2d")]
282 + cmd.insert(xpbd::LockedAxes::new().lock_rotation());
283 + } else {
284 + #[cfg(feature = "rapier2d")]
285 + cmd.insert(rapier::LockedAxes::empty());
286 + #[cfg(feature = "xpbd2d")]
287 + cmd.insert(xpbd::LockedAxes::new());
288 + }
289 + })
290 + .with_checkbox(
291 + "Phase Through Collision Groups",
292 + true,
293 + |mut cmd, use_collision_groups| {
294 + #[cfg(feature = "rapier2d")]
295 + if use_collision_groups {
296 + cmd.insert(CollisionGroups {
297 + memberships: Group::GROUP_2,
298 + filters: Group::GROUP_2,
299 + });
300 + } else {
301 + cmd.insert(CollisionGroups {
302 + memberships: Group::ALL,
303 + filters: Group::ALL,
304 + });
305 + }
306 + #[cfg(feature = "xpbd2d")]
307 + {
308 + let player_layers: LayerMask = if use_collision_groups {
309 + [LayerNames::Player].into()
310 + } else {
311 + [LayerNames::Player, LayerNames::PhaseThrough].into()
312 + };
313 + cmd.insert(CollisionLayers::new(player_layers, player_layers));
314 + }
315 + },
316 + )
|
|
variable does not need to be mutable:
demos/src/bin/platformer_2d.rs#L272
warning: variable does not need to be mutable
--> demos/src/bin/platformer_2d.rs:272:18
|
272 | |mut cmd, use_collision_groups| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_2d.rs#L253
warning: variable does not need to be mutable
--> demos/src/bin/platformer_2d.rs:253:49
|
253 | .with_checkbox("Lock Tilt", false, |mut cmd, lock_tilt| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_2d.rs#L245
warning: variable does not need to be mutable
--> demos/src/bin/platformer_2d.rs:245:39
|
245 | ("Ball (exact)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_2d.rs#L239
warning: variable does not need to be mutable
--> demos/src/bin/platformer_2d.rs:239:42
|
239 | ("Ball (underfit)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_2d.rs#L233
warning: variable does not need to be mutable
--> demos/src/bin/platformer_2d.rs:233:41
|
233 | ("flat (overfit)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_2d.rs#L227
warning: variable does not need to be mutable
--> demos/src/bin/platformer_2d.rs:227:39
|
227 | ("Flat (exact)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_2d.rs#L221
warning: variable does not need to be mutable
--> demos/src/bin/platformer_2d.rs:221:42
|
221 | ("Flat (underfit)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_2d.rs#L215
warning: variable does not need to be mutable
--> demos/src/bin/platformer_2d.rs:215:32
|
215 | ("Point", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` on by default
|
unused variable: `cmd`:
demos/src/bin/platformer_2d.rs#L320
warning: unused variable: `cmd`
--> demos/src/bin/platformer_2d.rs:320:59
|
320 | cmd.insert(TnuaCrouchEnforcer::new(0.5 * Vector3::Y, |cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `use_collision_groups`:
demos/src/bin/platformer_2d.rs#L272
warning: unused variable: `use_collision_groups`
--> demos/src/bin/platformer_2d.rs:272:27
|
272 | |mut cmd, use_collision_groups| {
| ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_use_collision_groups`
|
unused variable: `cmd`:
demos/src/bin/platformer_2d.rs#L272
warning: unused variable: `cmd`
--> demos/src/bin/platformer_2d.rs:272:22
|
272 | |mut cmd, use_collision_groups| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_2d.rs#L253
warning: unused variable: `cmd`
--> demos/src/bin/platformer_2d.rs:253:53
|
253 | .with_checkbox("Lock Tilt", false, |mut cmd, lock_tilt| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_2d.rs#L245
warning: unused variable: `cmd`
--> demos/src/bin/platformer_2d.rs:245:43
|
245 | ("Ball (exact)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_2d.rs#L239
warning: unused variable: `cmd`
--> demos/src/bin/platformer_2d.rs:239:46
|
239 | ("Ball (underfit)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_2d.rs#L233
warning: unused variable: `cmd`
--> demos/src/bin/platformer_2d.rs:233:45
|
233 | ("flat (overfit)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_2d.rs#L227
warning: unused variable: `cmd`
--> demos/src/bin/platformer_2d.rs:227:43
|
227 | ("Flat (exact)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_2d.rs#L221
warning: unused variable: `cmd`
--> demos/src/bin/platformer_2d.rs:221:46
|
221 | ("Flat (underfit)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_2d.rs#L215
warning: unused variable: `cmd`
--> demos/src/bin/platformer_2d.rs:215:36
|
215 | ("Point", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
= note: `#[warn(unused_variables)]` on by default
|
returning the result of a `let` binding from a block:
demos/src/bin/platformer_3d.rs#L340
warning: returning the result of a `let` binding from a block
--> demos/src/bin/platformer_3d.rs:340:9
|
223 | / let command_altering_selectors = CommandAlteringSelectors::default()
224 | | // By default Tnua uses a raycast, but this could be a problem if the character stands
225 | | // just past the edge while part of its body is above the platform. To solve this, we
226 | | // need to cast a shape - which is physics-engine specific. We set the shape using a
... |
320 | | },
321 | | );
| |______________- unnecessary `let` binding
...
340 | command_altering_selectors
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return
= note: `#[warn(clippy::let_and_return)]` on by default
help: return the expression directly
|
223 ~
224 | #[cfg(feature = "rapier3d")]
...
241 | );
242 ~ CommandAlteringSelectors::default()
243 + // By default Tnua uses a raycast, but this could be a problem if the character stands
244 + // just past the edge while part of its body is above the platform. To solve this, we
245 + // need to cast a shape - which is physics-engine specific. We set the shape using a
246 + // component.
247 + .with_combo(
248 + "Sensor Shape",
249 + 1,
250 + &[
251 + ("no", |mut cmd| {
252 + #[cfg(feature = "rapier3d")]
253 + cmd.remove::<TnuaRapier3dSensorShape>();
254 + #[cfg(feature = "xpbd3d")]
255 + cmd.remove::<TnuaXpbd3dSensorShape>();
256 + }),
257 + ("flat (underfit)", |mut cmd| {
258 + #[cfg(feature = "rapier3d")]
259 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::cylinder(
260 + 0.0, 0.49,
261 + )));
262 + #[cfg(feature = "xpbd3d")]
263 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::cylinder(0.0, 0.49)));
264 + }),
265 + ("flat (exact)", |mut cmd| {
266 + #[cfg(feature = "rapier3d")]
267 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::cylinder(
268 + 0.0, 0.5,
269 + )));
270 + #[cfg(feature = "xpbd3d")]
271 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::cylinder(0.0, 0.5)));
272 + }),
273 + ("flat (overfit)", |mut cmd| {
274 + #[cfg(feature = "rapier3d")]
275 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::cylinder(
276 + 0.0, 0.51,
277 + )));
278 + #[cfg(feature = "xpbd3d")]
279 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::cylinder(0.0, 0.51)));
280 + }),
281 + ("ball (underfit)", |mut cmd| {
282 + #[cfg(feature = "rapier3d")]
283 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::ball(0.49)));
284 + #[cfg(feature = "xpbd3d")]
285 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::sphere(0.49)));
286 + }),
287 + ("ball (exact)", |mut cmd| {
288 + #[cfg(feature = "rapier3d")]
289 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::ball(0.5)));
290 + #[cfg(feature = "xpbd3d")]
291 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::sphere(0.5)));
292 + }),
293 + ],
294 + )
295 + .with_checkbox("Lock Tilt", true, |mut cmd, lock_tilt| {
296 + // Tnua will automatically apply angular impulses/forces to fix the tilt and make
297 + // the character stand upward, but it is also possible to just let the physics
298 + // engine prevent rotation (other than around the Y axis, for turning)
299 + if lock_tilt {
300 + #[cfg(feature = "rapier3d")]
301 + cmd.insert(
302 + rapier::LockedAxes::ROTATION_LOCKED_X
303 + | rapier::LockedAxes::ROTATION_LOCKED_Z,
304 + );
305 + #[cfg(feature = "xpbd3d")]
306 + cmd.insert(xpbd::LockedAxes::new().lock_rotation_x().lock_rotation_z());
307 + } else {
308 + #[cfg(feature = "rapier3d")]
309 + cmd.insert(rapier::LockedAxes::empty());
310 + #[cfg(feature = "xpbd3d")]
311 + cmd.insert(xpbd::LockedAxes::new());
312 + }
313 + })
314 + .with_checkbox(
315 + "Phase Through Collision Groups",
316 + true,
317 + |mut cmd, use_collision_groups| {
318 + #[cfg(feature = "rapier3d")]
319 + if use_collision_groups {
320 + cmd.insert(CollisionGroups {
321 + memberships: Group::GROUP_2,
322 + filters: Group::GROUP_2,
323 + });
324 + } else {
325 + cmd.insert(CollisionGroups {
326 + memberships: Group::ALL,
327 + filters: Group::ALL,
328 + });
329 + }
330 + #[cfg(feature = "xpbd3d")]
331 + {
332 + let player_layers: LayerMask = if use_collision_groups {
333 + [LayerNames::Player].into()
334 + } else {
335 + [LayerNames::Player, LayerNames::PhaseThrough].into()
336 + };
337 + cmd.insert(CollisionLayers::new(player_layers, player_layers));
338 + }
339 + },
340 + )
|
|
variable does not need to be mutable:
demos/src/bin/platformer_3d.rs#L298
warning: variable does not need to be mutable
--> demos/src/bin/platformer_3d.rs:298:18
|
298 | |mut cmd, use_collision_groups| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_3d.rs#L276
warning: variable does not need to be mutable
--> demos/src/bin/platformer_3d.rs:276:48
|
276 | .with_checkbox("Lock Tilt", true, |mut cmd, lock_tilt| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_3d.rs#L268
warning: variable does not need to be mutable
--> demos/src/bin/platformer_3d.rs:268:39
|
268 | ("ball (exact)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_3d.rs#L262
warning: variable does not need to be mutable
--> demos/src/bin/platformer_3d.rs:262:42
|
262 | ("ball (underfit)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_3d.rs#L254
warning: variable does not need to be mutable
--> demos/src/bin/platformer_3d.rs:254:41
|
254 | ("flat (overfit)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_3d.rs#L246
warning: variable does not need to be mutable
--> demos/src/bin/platformer_3d.rs:246:39
|
246 | ("flat (exact)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_3d.rs#L238
warning: variable does not need to be mutable
--> demos/src/bin/platformer_3d.rs:238:42
|
238 | ("flat (underfit)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_3d.rs#L232
warning: variable does not need to be mutable
--> demos/src/bin/platformer_3d.rs:232:29
|
232 | ("no", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` on by default
|
unused variable: `cmd`:
demos/src/bin/platformer_3d.rs#L344
warning: unused variable: `cmd`
--> demos/src/bin/platformer_3d.rs:344:59
|
344 | cmd.insert(TnuaCrouchEnforcer::new(0.5 * Vector3::Y, |cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `use_collision_groups`:
demos/src/bin/platformer_3d.rs#L298
warning: unused variable: `use_collision_groups`
--> demos/src/bin/platformer_3d.rs:298:27
|
298 | |mut cmd, use_collision_groups| {
| ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_use_collision_groups`
|
unused variable: `cmd`:
demos/src/bin/platformer_3d.rs#L298
warning: unused variable: `cmd`
--> demos/src/bin/platformer_3d.rs:298:22
|
298 | |mut cmd, use_collision_groups| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_3d.rs#L276
warning: unused variable: `cmd`
--> demos/src/bin/platformer_3d.rs:276:52
|
276 | .with_checkbox("Lock Tilt", true, |mut cmd, lock_tilt| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_3d.rs#L268
warning: unused variable: `cmd`
--> demos/src/bin/platformer_3d.rs:268:43
|
268 | ("ball (exact)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_3d.rs#L262
warning: unused variable: `cmd`
--> demos/src/bin/platformer_3d.rs:262:46
|
262 | ("ball (underfit)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_3d.rs#L254
warning: unused variable: `cmd`
--> demos/src/bin/platformer_3d.rs:254:45
|
254 | ("flat (overfit)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_3d.rs#L246
warning: unused variable: `cmd`
--> demos/src/bin/platformer_3d.rs:246:43
|
246 | ("flat (exact)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_3d.rs#L238
warning: unused variable: `cmd`
--> demos/src/bin/platformer_3d.rs:238:46
|
238 | ("flat (underfit)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_3d.rs#L232
warning: unused variable: `cmd`
--> demos/src/bin/platformer_3d.rs:232:33
|
232 | ("no", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
= note: `#[warn(unused_variables)]` on by default
|
returning the result of a `let` binding from a block:
demos/src/bin/platformer_2d.rs#L316
warning: returning the result of a `let` binding from a block
--> demos/src/bin/platformer_2d.rs:316:9
|
206 | / let command_altering_selectors = CommandAlteringSelectors::default()
207 | | // By default Tnua uses a raycast, but this could be a problem if the character stands
208 | | // just past the edge while part of its body is above the platform. To solve this, we
209 | | // need to cast a shape - which is physics-engine specific. We set the shape using a
... |
294 | | },
295 | | );
| |______________- unnecessary `let` binding
...
316 | command_altering_selectors
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return
= note: `#[warn(clippy::let_and_return)]` on by default
help: return the expression directly
|
206 ~
207 | #[cfg(feature = "rapier2d")]
...
226 | );
227 ~ CommandAlteringSelectors::default()
228 + // By default Tnua uses a raycast, but this could be a problem if the character stands
229 + // just past the edge while part of its body is above the platform. To solve this, we
230 + // need to cast a shape - which is physics-engine specific. We set the shape using a
231 + // component.
232 + .with_combo(
233 + "Sensor Shape",
234 + 1,
235 + &[
236 + ("Point", |mut cmd| {
237 + #[cfg(feature = "rapier2d")]
238 + cmd.remove::<TnuaRapier2dSensorShape>();
239 + #[cfg(feature = "xpbd2d")]
240 + cmd.remove::<TnuaXpbd2dSensorShape>();
241 + }),
242 + ("Flat (underfit)", |mut cmd| {
243 + #[cfg(feature = "rapier2d")]
244 + cmd.insert(TnuaRapier2dSensorShape(rapier::Collider::cuboid(0.49, 0.0)));
245 + #[cfg(feature = "xpbd2d")]
246 + cmd.insert(TnuaXpbd2dSensorShape(xpbd::Collider::rectangle(0.99, 0.0)));
247 + }),
248 + ("Flat (exact)", |mut cmd| {
249 + #[cfg(feature = "rapier2d")]
250 + cmd.insert(TnuaRapier2dSensorShape(rapier::Collider::cuboid(0.5, 0.0)));
251 + #[cfg(feature = "xpbd2d")]
252 + cmd.insert(TnuaXpbd2dSensorShape(xpbd::Collider::rectangle(1.0, 0.0)));
253 + }),
254 + ("flat (overfit)", |mut cmd| {
255 + #[cfg(feature = "rapier2d")]
256 + cmd.insert(TnuaRapier2dSensorShape(rapier::Collider::cuboid(0.51, 0.0)));
257 + #[cfg(feature = "xpbd2d")]
258 + cmd.insert(TnuaXpbd2dSensorShape(xpbd::Collider::rectangle(1.01, 0.0)));
259 + }),
260 + ("Ball (underfit)", |mut cmd| {
261 + #[cfg(feature = "rapier2d")]
262 + cmd.insert(TnuaRapier2dSensorShape(rapier::Collider::ball(0.49)));
263 + #[cfg(feature = "xpbd2d")]
264 + cmd.insert(TnuaXpbd2dSensorShape(xpbd::Collider::circle(0.49)));
265 + }),
266 + ("Ball (exact)", |mut cmd| {
267 + #[cfg(feature = "rapier2d")]
268 + cmd.insert(TnuaRapier2dSensorShape(rapier::Collider::ball(0.5)));
269 + #[cfg(feature = "xpbd2d")]
270 + cmd.insert(TnuaXpbd2dSensorShape(xpbd::Collider::circle(0.5)));
271 + }),
272 + ],
273 + )
274 + .with_checkbox("Lock Tilt", false, |mut cmd, lock_tilt| {
275 + // Tnua will automatically apply angular impulses/forces to fix the tilt and make
276 + // the character stand upward, but it is also possible to just let the physics
277 + // engine prevent rotation (other than around the Y axis, for turning)
278 + if lock_tilt {
279 + #[cfg(feature = "rapier2d")]
280 + cmd.insert(rapier::LockedAxes::ROTATION_LOCKED);
281 + #[cfg(feature = "xpbd2d")]
282 + cmd.insert(xpbd::LockedAxes::new().lock_rotation());
283 + } else {
284 + #[cfg(feature = "rapier2d")]
285 + cmd.insert(rapier::LockedAxes::empty());
286 + #[cfg(feature = "xpbd2d")]
287 + cmd.insert(xpbd::LockedAxes::new());
288 + }
289 + })
290 + .with_checkbox(
291 + "Phase Through Collision Groups",
292 + true,
293 + |mut cmd, use_collision_groups| {
294 + #[cfg(feature = "rapier2d")]
295 + if use_collision_groups {
296 + cmd.insert(CollisionGroups {
297 + memberships: Group::GROUP_2,
298 + filters: Group::GROUP_2,
299 + });
300 + } else {
301 + cmd.insert(CollisionGroups {
302 + memberships: Group::ALL,
303 + filters: Group::ALL,
304 + });
305 + }
306 + #[cfg(feature = "xpbd2d")]
307 + {
308 + let player_layers: LayerMask = if use_collision_groups {
309 + [LayerNames::Player].into()
310 + } else {
311 + [LayerNames::Player, LayerNames::PhaseThrough].into()
312 + };
313 + cmd.insert(CollisionLayers::new(player_layers, player_layers));
314 + }
315 + },
316 + )
|
|
variable does not need to be mutable:
demos/src/bin/platformer_2d.rs#L272
warning: variable does not need to be mutable
--> demos/src/bin/platformer_2d.rs:272:18
|
272 | |mut cmd, use_collision_groups| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_2d.rs#L253
warning: variable does not need to be mutable
--> demos/src/bin/platformer_2d.rs:253:49
|
253 | .with_checkbox("Lock Tilt", false, |mut cmd, lock_tilt| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_2d.rs#L245
warning: variable does not need to be mutable
--> demos/src/bin/platformer_2d.rs:245:39
|
245 | ("Ball (exact)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_2d.rs#L239
warning: variable does not need to be mutable
--> demos/src/bin/platformer_2d.rs:239:42
|
239 | ("Ball (underfit)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_2d.rs#L233
warning: variable does not need to be mutable
--> demos/src/bin/platformer_2d.rs:233:41
|
233 | ("flat (overfit)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_2d.rs#L227
warning: variable does not need to be mutable
--> demos/src/bin/platformer_2d.rs:227:39
|
227 | ("Flat (exact)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_2d.rs#L221
warning: variable does not need to be mutable
--> demos/src/bin/platformer_2d.rs:221:42
|
221 | ("Flat (underfit)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_2d.rs#L215
warning: variable does not need to be mutable
--> demos/src/bin/platformer_2d.rs:215:32
|
215 | ("Point", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` on by default
|
unused variable: `cmd`:
demos/src/bin/platformer_2d.rs#L320
warning: unused variable: `cmd`
--> demos/src/bin/platformer_2d.rs:320:59
|
320 | cmd.insert(TnuaCrouchEnforcer::new(0.5 * Vector3::Y, |cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `use_collision_groups`:
demos/src/bin/platformer_2d.rs#L272
warning: unused variable: `use_collision_groups`
--> demos/src/bin/platformer_2d.rs:272:27
|
272 | |mut cmd, use_collision_groups| {
| ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_use_collision_groups`
|
unused variable: `cmd`:
demos/src/bin/platformer_2d.rs#L272
warning: unused variable: `cmd`
--> demos/src/bin/platformer_2d.rs:272:22
|
272 | |mut cmd, use_collision_groups| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_2d.rs#L253
warning: unused variable: `cmd`
--> demos/src/bin/platformer_2d.rs:253:53
|
253 | .with_checkbox("Lock Tilt", false, |mut cmd, lock_tilt| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_2d.rs#L245
warning: unused variable: `cmd`
--> demos/src/bin/platformer_2d.rs:245:43
|
245 | ("Ball (exact)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_2d.rs#L239
warning: unused variable: `cmd`
--> demos/src/bin/platformer_2d.rs:239:46
|
239 | ("Ball (underfit)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_2d.rs#L233
warning: unused variable: `cmd`
--> demos/src/bin/platformer_2d.rs:233:45
|
233 | ("flat (overfit)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_2d.rs#L227
warning: unused variable: `cmd`
--> demos/src/bin/platformer_2d.rs:227:43
|
227 | ("Flat (exact)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_2d.rs#L221
warning: unused variable: `cmd`
--> demos/src/bin/platformer_2d.rs:221:46
|
221 | ("Flat (underfit)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_2d.rs#L215
warning: unused variable: `cmd`
--> demos/src/bin/platformer_2d.rs:215:36
|
215 | ("Point", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
= note: `#[warn(unused_variables)]` on by default
|
returning the result of a `let` binding from a block:
demos/src/bin/shooter_like.rs#L354
warning: returning the result of a `let` binding from a block
--> demos/src/bin/shooter_like.rs:354:9
|
237 | / let command_altering_selectors = CommandAlteringSelectors::default()
238 | | // By default Tnua uses a raycast, but this could be a problem if the character stands
239 | | // just past the edge while part of its body is above the platform. To solve this, we
240 | | // need to cast a shape - which is physics-engine specific. We set the shape using a
... |
334 | | },
335 | | );
| |______________- unnecessary `let` binding
...
354 | command_altering_selectors
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return
= note: `#[warn(clippy::let_and_return)]` on by default
help: return the expression directly
|
237 ~
238 | #[cfg(feature = "rapier3d")]
...
255 | );
256 ~ CommandAlteringSelectors::default()
257 + // By default Tnua uses a raycast, but this could be a problem if the character stands
258 + // just past the edge while part of its body is above the platform. To solve this, we
259 + // need to cast a shape - which is physics-engine specific. We set the shape using a
260 + // component.
261 + .with_combo(
262 + "Sensor Shape",
263 + 1,
264 + &[
265 + ("no", |mut cmd| {
266 + #[cfg(feature = "rapier3d")]
267 + cmd.remove::<TnuaRapier3dSensorShape>();
268 + #[cfg(feature = "xpbd3d")]
269 + cmd.remove::<TnuaXpbd3dSensorShape>();
270 + }),
271 + ("flat (underfit)", |mut cmd| {
272 + #[cfg(feature = "rapier3d")]
273 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::cylinder(
274 + 0.0, 0.49,
275 + )));
276 + #[cfg(feature = "xpbd3d")]
277 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::cylinder(0.0, 0.49)));
278 + }),
279 + ("flat (exact)", |mut cmd| {
280 + #[cfg(feature = "rapier3d")]
281 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::cylinder(
282 + 0.0, 0.5,
283 + )));
284 + #[cfg(feature = "xpbd3d")]
285 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::cylinder(0.0, 0.5)));
286 + }),
287 + ("flat (overfit)", |mut cmd| {
288 + #[cfg(feature = "rapier3d")]
289 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::cylinder(
290 + 0.0, 0.51,
291 + )));
292 + #[cfg(feature = "xpbd3d")]
293 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::cylinder(0.0, 0.51)));
294 + }),
295 + ("ball (underfit)", |mut cmd| {
296 + #[cfg(feature = "rapier3d")]
297 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::ball(0.49)));
298 + #[cfg(feature = "xpbd3d")]
299 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::sphere(0.49)));
300 + }),
301 + ("ball (exact)", |mut cmd| {
302 + #[cfg(feature = "rapier3d")]
303 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::ball(0.5)));
304 + #[cfg(feature = "xpbd3d")]
305 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::sphere(0.5)));
306 + }),
307 + ],
308 + )
309 + .with_checkbox("Lock Tilt", true, |mut cmd, lock_tilt| {
310 + // Tnua will automatically apply angular impulses/forces to fix the tilt and make
311 + // the character stand upward, but it is also possible to just let the physics
312 + // engine prevent rotation (other than around the Y axis, for turning)
313 + if lock_tilt {
314 + #[cfg(feature = "rapier3d")]
315 + cmd.insert(
316 + rapier::LockedAxes::ROTATION_LOCKED_X
317 + | rapier::LockedAxes::ROTATION_LOCKED_Z,
318 + );
319 + #[cfg(feature = "xpbd3d")]
320 + cmd.insert(xpbd::LockedAxes::new().lock_rotation_x().lock_rotation_z());
321 + } else {
322 + #[cfg(feature = "rapier3d")]
323 + cmd.insert(rapier::LockedAxes::empty());
324 + #[cfg(feature = "xpbd3d")]
325 + cmd.insert(xpbd::LockedAxes::new());
326 + }
327 + })
328 + .with_checkbox(
329 + "Phase Through Collision Groups",
330 + true,
331 + |mut cmd, use_collision_groups| {
332 + #[cfg(feature = "rapier3d")]
333 + if use_collision_groups {
334 + cmd.insert(CollisionGroups {
335 + memberships: Group::GROUP_2,
336 + filters: Group::GROUP_2,
337 + });
338 + } else {
339 + cmd.insert(CollisionGroups {
340 + memberships: Group::ALL,
341 + filters: Group::ALL,
342 + });
343 + }
344 + #[cfg(feature = "xpbd3d")]
345 + {
346 + let player_layers: LayerMask = if use_collision_groups {
347 + [LayerNames::Player].into()
348 + } else {
349 + [LayerNames::Player, LayerNames::PhaseThrough].into()
350 + };
351 + cmd.insert(CollisionLayers::new(player_layers, player_layers));
352 + }
353 + },
354 + )
|
|
variable does not need to be mutable:
demos/src/bin/shooter_like.rs#L312
warning: variable does not need to be mutable
--> demos/src/bin/shooter_like.rs:312:18
|
312 | |mut cmd, use_collision_groups| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/shooter_like.rs#L290
warning: variable does not need to be mutable
--> demos/src/bin/shooter_like.rs:290:48
|
290 | .with_checkbox("Lock Tilt", true, |mut cmd, lock_tilt| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/shooter_like.rs#L282
warning: variable does not need to be mutable
--> demos/src/bin/shooter_like.rs:282:39
|
282 | ("ball (exact)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/shooter_like.rs#L276
warning: variable does not need to be mutable
--> demos/src/bin/shooter_like.rs:276:42
|
276 | ("ball (underfit)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/shooter_like.rs#L268
warning: variable does not need to be mutable
--> demos/src/bin/shooter_like.rs:268:41
|
268 | ("flat (overfit)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/shooter_like.rs#L260
warning: variable does not need to be mutable
--> demos/src/bin/shooter_like.rs:260:39
|
260 | ("flat (exact)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/shooter_like.rs#L252
warning: variable does not need to be mutable
--> demos/src/bin/shooter_like.rs:252:42
|
252 | ("flat (underfit)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/shooter_like.rs#L246
warning: variable does not need to be mutable
--> demos/src/bin/shooter_like.rs:246:29
|
246 | ("no", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` on by default
|
unused variable: `cmd`:
demos/src/bin/shooter_like.rs#L358
warning: unused variable: `cmd`
--> demos/src/bin/shooter_like.rs:358:59
|
358 | cmd.insert(TnuaCrouchEnforcer::new(0.5 * Vector3::Y, |cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `use_collision_groups`:
demos/src/bin/shooter_like.rs#L312
warning: unused variable: `use_collision_groups`
--> demos/src/bin/shooter_like.rs:312:27
|
312 | |mut cmd, use_collision_groups| {
| ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_use_collision_groups`
|
unused variable: `cmd`:
demos/src/bin/shooter_like.rs#L312
warning: unused variable: `cmd`
--> demos/src/bin/shooter_like.rs:312:22
|
312 | |mut cmd, use_collision_groups| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/shooter_like.rs#L290
warning: unused variable: `cmd`
--> demos/src/bin/shooter_like.rs:290:52
|
290 | .with_checkbox("Lock Tilt", true, |mut cmd, lock_tilt| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/shooter_like.rs#L282
warning: unused variable: `cmd`
--> demos/src/bin/shooter_like.rs:282:43
|
282 | ("ball (exact)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/shooter_like.rs#L276
warning: unused variable: `cmd`
--> demos/src/bin/shooter_like.rs:276:46
|
276 | ("ball (underfit)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/shooter_like.rs#L268
warning: unused variable: `cmd`
--> demos/src/bin/shooter_like.rs:268:45
|
268 | ("flat (overfit)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/shooter_like.rs#L260
warning: unused variable: `cmd`
--> demos/src/bin/shooter_like.rs:260:43
|
260 | ("flat (exact)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/shooter_like.rs#L252
warning: unused variable: `cmd`
--> demos/src/bin/shooter_like.rs:252:46
|
252 | ("flat (underfit)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/shooter_like.rs#L246
warning: unused variable: `cmd`
--> demos/src/bin/shooter_like.rs:246:33
|
246 | ("no", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
= note: `#[warn(unused_variables)]` on by default
|
returning the result of a `let` binding from a block:
demos/src/bin/shooter_like.rs#L354
warning: returning the result of a `let` binding from a block
--> demos/src/bin/shooter_like.rs:354:9
|
237 | / let command_altering_selectors = CommandAlteringSelectors::default()
238 | | // By default Tnua uses a raycast, but this could be a problem if the character stands
239 | | // just past the edge while part of its body is above the platform. To solve this, we
240 | | // need to cast a shape - which is physics-engine specific. We set the shape using a
... |
334 | | },
335 | | );
| |______________- unnecessary `let` binding
...
354 | command_altering_selectors
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return
= note: `#[warn(clippy::let_and_return)]` on by default
help: return the expression directly
|
237 ~
238 | #[cfg(feature = "rapier3d")]
...
255 | );
256 ~ CommandAlteringSelectors::default()
257 + // By default Tnua uses a raycast, but this could be a problem if the character stands
258 + // just past the edge while part of its body is above the platform. To solve this, we
259 + // need to cast a shape - which is physics-engine specific. We set the shape using a
260 + // component.
261 + .with_combo(
262 + "Sensor Shape",
263 + 1,
264 + &[
265 + ("no", |mut cmd| {
266 + #[cfg(feature = "rapier3d")]
267 + cmd.remove::<TnuaRapier3dSensorShape>();
268 + #[cfg(feature = "xpbd3d")]
269 + cmd.remove::<TnuaXpbd3dSensorShape>();
270 + }),
271 + ("flat (underfit)", |mut cmd| {
272 + #[cfg(feature = "rapier3d")]
273 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::cylinder(
274 + 0.0, 0.49,
275 + )));
276 + #[cfg(feature = "xpbd3d")]
277 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::cylinder(0.0, 0.49)));
278 + }),
279 + ("flat (exact)", |mut cmd| {
280 + #[cfg(feature = "rapier3d")]
281 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::cylinder(
282 + 0.0, 0.5,
283 + )));
284 + #[cfg(feature = "xpbd3d")]
285 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::cylinder(0.0, 0.5)));
286 + }),
287 + ("flat (overfit)", |mut cmd| {
288 + #[cfg(feature = "rapier3d")]
289 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::cylinder(
290 + 0.0, 0.51,
291 + )));
292 + #[cfg(feature = "xpbd3d")]
293 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::cylinder(0.0, 0.51)));
294 + }),
295 + ("ball (underfit)", |mut cmd| {
296 + #[cfg(feature = "rapier3d")]
297 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::ball(0.49)));
298 + #[cfg(feature = "xpbd3d")]
299 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::sphere(0.49)));
300 + }),
301 + ("ball (exact)", |mut cmd| {
302 + #[cfg(feature = "rapier3d")]
303 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::ball(0.5)));
304 + #[cfg(feature = "xpbd3d")]
305 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::sphere(0.5)));
306 + }),
307 + ],
308 + )
309 + .with_checkbox("Lock Tilt", true, |mut cmd, lock_tilt| {
310 + // Tnua will automatically apply angular impulses/forces to fix the tilt and make
311 + // the character stand upward, but it is also possible to just let the physics
312 + // engine prevent rotation (other than around the Y axis, for turning)
313 + if lock_tilt {
314 + #[cfg(feature = "rapier3d")]
315 + cmd.insert(
316 + rapier::LockedAxes::ROTATION_LOCKED_X
317 + | rapier::LockedAxes::ROTATION_LOCKED_Z,
318 + );
319 + #[cfg(feature = "xpbd3d")]
320 + cmd.insert(xpbd::LockedAxes::new().lock_rotation_x().lock_rotation_z());
321 + } else {
322 + #[cfg(feature = "rapier3d")]
323 + cmd.insert(rapier::LockedAxes::empty());
324 + #[cfg(feature = "xpbd3d")]
325 + cmd.insert(xpbd::LockedAxes::new());
326 + }
327 + })
328 + .with_checkbox(
329 + "Phase Through Collision Groups",
330 + true,
331 + |mut cmd, use_collision_groups| {
332 + #[cfg(feature = "rapier3d")]
333 + if use_collision_groups {
334 + cmd.insert(CollisionGroups {
335 + memberships: Group::GROUP_2,
336 + filters: Group::GROUP_2,
337 + });
338 + } else {
339 + cmd.insert(CollisionGroups {
340 + memberships: Group::ALL,
341 + filters: Group::ALL,
342 + });
343 + }
344 + #[cfg(feature = "xpbd3d")]
345 + {
346 + let player_layers: LayerMask = if use_collision_groups {
347 + [LayerNames::Player].into()
348 + } else {
349 + [LayerNames::Player, LayerNames::PhaseThrough].into()
350 + };
351 + cmd.insert(CollisionLayers::new(player_layers, player_layers));
352 + }
353 + },
354 + )
|
|
variable does not need to be mutable:
demos/src/bin/shooter_like.rs#L312
warning: variable does not need to be mutable
--> demos/src/bin/shooter_like.rs:312:18
|
312 | |mut cmd, use_collision_groups| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/shooter_like.rs#L290
warning: variable does not need to be mutable
--> demos/src/bin/shooter_like.rs:290:48
|
290 | .with_checkbox("Lock Tilt", true, |mut cmd, lock_tilt| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/shooter_like.rs#L282
warning: variable does not need to be mutable
--> demos/src/bin/shooter_like.rs:282:39
|
282 | ("ball (exact)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/shooter_like.rs#L276
warning: variable does not need to be mutable
--> demos/src/bin/shooter_like.rs:276:42
|
276 | ("ball (underfit)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/shooter_like.rs#L268
warning: variable does not need to be mutable
--> demos/src/bin/shooter_like.rs:268:41
|
268 | ("flat (overfit)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/shooter_like.rs#L260
warning: variable does not need to be mutable
--> demos/src/bin/shooter_like.rs:260:39
|
260 | ("flat (exact)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/shooter_like.rs#L252
warning: variable does not need to be mutable
--> demos/src/bin/shooter_like.rs:252:42
|
252 | ("flat (underfit)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/shooter_like.rs#L246
warning: variable does not need to be mutable
--> demos/src/bin/shooter_like.rs:246:29
|
246 | ("no", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` on by default
|
unused variable: `cmd`:
demos/src/bin/shooter_like.rs#L358
warning: unused variable: `cmd`
--> demos/src/bin/shooter_like.rs:358:59
|
358 | cmd.insert(TnuaCrouchEnforcer::new(0.5 * Vector3::Y, |cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `use_collision_groups`:
demos/src/bin/shooter_like.rs#L312
warning: unused variable: `use_collision_groups`
--> demos/src/bin/shooter_like.rs:312:27
|
312 | |mut cmd, use_collision_groups| {
| ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_use_collision_groups`
|
unused variable: `cmd`:
demos/src/bin/shooter_like.rs#L312
warning: unused variable: `cmd`
--> demos/src/bin/shooter_like.rs:312:22
|
312 | |mut cmd, use_collision_groups| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/shooter_like.rs#L290
warning: unused variable: `cmd`
--> demos/src/bin/shooter_like.rs:290:52
|
290 | .with_checkbox("Lock Tilt", true, |mut cmd, lock_tilt| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/shooter_like.rs#L282
warning: unused variable: `cmd`
--> demos/src/bin/shooter_like.rs:282:43
|
282 | ("ball (exact)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/shooter_like.rs#L276
warning: unused variable: `cmd`
--> demos/src/bin/shooter_like.rs:276:46
|
276 | ("ball (underfit)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/shooter_like.rs#L268
warning: unused variable: `cmd`
--> demos/src/bin/shooter_like.rs:268:45
|
268 | ("flat (overfit)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/shooter_like.rs#L260
warning: unused variable: `cmd`
--> demos/src/bin/shooter_like.rs:260:43
|
260 | ("flat (exact)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/shooter_like.rs#L252
warning: unused variable: `cmd`
--> demos/src/bin/shooter_like.rs:252:46
|
252 | ("flat (underfit)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/shooter_like.rs#L246
warning: unused variable: `cmd`
--> demos/src/bin/shooter_like.rs:246:33
|
246 | ("no", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
= note: `#[warn(unused_variables)]` on by default
|
associated function `make_system` is never used:
demos/src/moving_platform.rs#L63
warning: associated function `make_system` is never used
--> demos/src/moving_platform.rs:63:8
|
54 | impl MovingPlatform {
| ------------------- associated function in this implementation
...
63 | fn make_system<V: Component>(
| ^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
|
unused variable: `setting_from_ui`:
demos/src/ui/mod.rs#L229
warning: unused variable: `setting_from_ui`
--> demos/src/ui/mod.rs:229:5
|
229 | setting_from_ui: Res<DemoUiPhysicsBackendActive>,
| ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_setting_from_ui`
|
unused variable: `app`:
demos/src/moving_platform.rs#L7
warning: unused variable: `app`
--> demos/src/moving_platform.rs:7:21
|
7 | fn build(&self, app: &mut App) {
| ^^^ help: if this is intentional, prefix it with an underscore: `_app`
|
= note: `#[warn(unused_variables)]` on by default
|
unused import: `make_update_plot_data_system`:
demos/src/ui/mod.rs#L22
warning: unused import: `make_update_plot_data_system`
--> demos/src/ui/mod.rs:22:22
|
22 | use self::plotting::{make_update_plot_data_system, plot_source_rolling_update};
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
Clippy
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions-rs/toolchain@v1, actions/cache@v1, actions-rs/clippy-check@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, actions/cache@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Tests (ubuntu-latest, nightly)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions-rs/toolchain@v1, actions/cache@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Tests (ubuntu-latest, nightly)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, actions/cache@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Tests (ubuntu-latest, nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Tests (ubuntu-latest, nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Tests (ubuntu-latest, nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Tests (ubuntu-latest, nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Tests (ubuntu-latest, 1.76.0)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions-rs/toolchain@v1, actions/cache@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Tests (ubuntu-latest, 1.76.0)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, actions/cache@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Tests (ubuntu-latest, 1.76.0)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Tests (ubuntu-latest, 1.76.0)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Tests (ubuntu-latest, 1.76.0)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Tests (ubuntu-latest, 1.76.0)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Docs
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions-rs/toolchain@v1, actions/cache@v1, actions-rs/cargo@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Docs
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, actions/cache@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Docs
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Docs
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Docs
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Docs
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Docs:
demos/src/ui/mod.rs#L22
unused import: `make_update_plot_data_system`
|
Docs:
demos/src/moving_platform.rs#L7
unused variable: `app`
|
Docs:
demos/src/ui/mod.rs#L229
unused variable: `setting_from_ui`
|
Docs:
demos/src/moving_platform.rs#L63
associated function `make_system` is never used
|
Docs
`tnua-demos-crate` (lib) generated 4 warnings (run `cargo fix --lib -p tnua-demos-crate` to apply 3 suggestions)
|
Docs:
src/builtins/walk.rs#L23
unresolved link to `Self::up`
|
Docs:
src/builtins/walk.rs#L27
unresolved link to `Self::up`
|
Docs:
src/builtins/walk.rs#L40
unresolved link to `Self::up`
|
Docs:
src/builtins/walk.rs#L46
unresolved link to `Self::up`
|
Docs:
src/builtins/walk.rs#L517
unresolved link to `TnuaBuiltinWalk::up`
|
Docs:
demos/src/ui/mod.rs#L22
unused import: `make_update_plot_data_system`
|
Docs:
demos/src/moving_platform.rs#L7
unused variable: `app`
|
Docs:
demos/src/ui/mod.rs#L229
unused variable: `setting_from_ui`
|
Docs:
demos/src/moving_platform.rs#L63
associated function `make_system` is never used
|
Docs
`tnua-demos-crate` (lib) generated 4 warnings (run `cargo fix --lib -p tnua-demos-crate` to apply 3 suggestions)
|
Update Docs and Demos in GitHub Pages
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, jetli/wasm-bindgen-action@v0.1.0, actions-rs/toolchain@v1, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Update Docs and Demos in GitHub Pages
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, jetli/wasm-bindgen-action@v0.1.0, actions-rs/toolchain@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Update Docs and Demos in GitHub Pages
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Update Docs and Demos in GitHub Pages
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Update Docs and Demos in GitHub Pages
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Update Docs and Demos in GitHub Pages
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
deploy-ghpages
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/deploy-pages@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
deploy-ghpages
Uploaded artifact size of 1933731840 bytes exceeds the allowed size of 1 GB. Deployment might fail.
|
Deprecation notice: v1, v2, and v3 of the artifact actions
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "github-pages".
Please update your workflow to use v4 of the artifact actions.
Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
|