Fine-tune camera scheduling in the shooter-like demo #239
ci.yml
on: push
Matrix: Tests
Update Docs and Demos in GitHub Pages
15m 17s
Rustfmt
8s
CI
2s
deploy-ghpages
1m 26s
Annotations
171 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/
|
returning the result of a `let` binding from a block:
demos/src/bin/shooter_like.rs#L353
warning: returning the result of a `let` binding from a block
--> demos/src/bin/shooter_like.rs:353:9
|
236 | / let command_altering_selectors = CommandAlteringSelectors::default()
237 | | // By default Tnua uses a raycast, but this could be a problem if the character stands
238 | | // just past the edge while part of its body is above the platform. To solve this, we
239 | | // need to cast a shape - which is physics-engine specific. We set the shape using a
... |
333 | | },
334 | | );
| |______________- unnecessary `let` binding
...
353 | 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
|
236 ~
237 | #[cfg(feature = "rapier3d")]
...
254 | );
255 ~ CommandAlteringSelectors::default()
256 + // By default Tnua uses a raycast, but this could be a problem if the character stands
257 + // just past the edge while part of its body is above the platform. To solve this, we
258 + // need to cast a shape - which is physics-engine specific. We set the shape using a
259 + // component.
260 + .with_combo(
261 + "Sensor Shape",
262 + 1,
263 + &[
264 + ("no", |mut cmd| {
265 + #[cfg(feature = "rapier3d")]
266 + cmd.remove::<TnuaRapier3dSensorShape>();
267 + #[cfg(feature = "xpbd3d")]
268 + cmd.remove::<TnuaXpbd3dSensorShape>();
269 + }),
270 + ("flat (underfit)", |mut cmd| {
271 + #[cfg(feature = "rapier3d")]
272 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::cylinder(
273 + 0.0, 0.49,
274 + )));
275 + #[cfg(feature = "xpbd3d")]
276 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::cylinder(0.0, 0.49)));
277 + }),
278 + ("flat (exact)", |mut cmd| {
279 + #[cfg(feature = "rapier3d")]
280 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::cylinder(
281 + 0.0, 0.5,
282 + )));
283 + #[cfg(feature = "xpbd3d")]
284 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::cylinder(0.0, 0.5)));
285 + }),
286 + ("flat (overfit)", |mut cmd| {
287 + #[cfg(feature = "rapier3d")]
288 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::cylinder(
289 + 0.0, 0.51,
290 + )));
291 + #[cfg(feature = "xpbd3d")]
292 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::cylinder(0.0, 0.51)));
293 + }),
294 + ("ball (underfit)", |mut cmd| {
295 + #[cfg(feature = "rapier3d")]
296 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::ball(0.49)));
297 + #[cfg(feature = "xpbd3d")]
298 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::sphere(0.49)));
299 + }),
300 + ("ball (exact)", |mut cmd| {
301 + #[cfg(feature = "rapier3d")]
302 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::ball(0.5)));
303 + #[cfg(feature = "xpbd3d")]
304 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::sphere(0.5)));
305 + }),
306 + ],
307 + )
308 + .with_checkbox("Lock Tilt", true, |mut cmd, lock_tilt| {
309 + // Tnua will automatically apply angular impulses/forces to fix the tilt and make
310 + // the character stand upward, but it is also possible to just let the physics
311 + // engine prevent rotation (other than around the Y axis, for turning)
312 + if lock_tilt {
313 + #[cfg(feature = "rapier3d")]
314 + cmd.insert(
315 + rapier::LockedAxes::ROTATION_LOCKED_X
316 + | rapier::LockedAxes::ROTATION_LOCKED_Z,
317 + );
318 + #[cfg(feature = "xpbd3d")]
319 + cmd.insert(xpbd::LockedAxes::new().lock_rotation_x().lock_rotation_z());
320 + } else {
321 + #[cfg(feature = "rapier3d")]
322 + cmd.insert(rapier::LockedAxes::empty());
323 + #[cfg(feature = "xpbd3d")]
324 + cmd.insert(xpbd::LockedAxes::new());
325 + }
326 + })
327 + .with_checkbox(
328 + "Phase Through Collision Groups",
329 + true,
330 + |mut cmd, use_collision_groups| {
331 + #[cfg(feature = "rapier3d")]
332 + if use_collision_groups {
333 + cmd.insert(CollisionGroups {
334 + memberships: Group::GROUP_2,
335 + filters: Group::GROUP_2,
336 + });
337 + } else {
338 + cmd.insert(CollisionGroups {
339 + memberships: Group::ALL,
340 + filters: Group::ALL,
341 + });
342 + }
343 + #[cfg(feature = "xpbd3d")]
344 + {
345 + let player_layers: LayerMask = if use_collision_groups {
346 + [LayerNames::Player].into()
347 + } else {
348 + [LayerNames::Player, LayerNames::PhaseThrough].into()
349 + };
350 + cmd.insert(CollisionLayers::new(player_layers, player_layers));
351 + }
352 + },
353 + )
|
|
returning the result of a `let` binding from a block:
demos/src/bin/platformer_3d.rs#L339
warning: returning the result of a `let` binding from a block
--> demos/src/bin/platformer_3d.rs:339:9
|
222 | / let command_altering_selectors = CommandAlteringSelectors::default()
223 | | // By default Tnua uses a raycast, but this could be a problem if the character stands
224 | | // just past the edge while part of its body is above the platform. To solve this, we
225 | | // need to cast a shape - which is physics-engine specific. We set the shape using a
... |
319 | | },
320 | | );
| |______________- unnecessary `let` binding
...
339 | 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
|
222 ~
223 | #[cfg(feature = "rapier3d")]
...
240 | );
241 ~ CommandAlteringSelectors::default()
242 + // By default Tnua uses a raycast, but this could be a problem if the character stands
243 + // just past the edge while part of its body is above the platform. To solve this, we
244 + // need to cast a shape - which is physics-engine specific. We set the shape using a
245 + // component.
246 + .with_combo(
247 + "Sensor Shape",
248 + 1,
249 + &[
250 + ("no", |mut cmd| {
251 + #[cfg(feature = "rapier3d")]
252 + cmd.remove::<TnuaRapier3dSensorShape>();
253 + #[cfg(feature = "xpbd3d")]
254 + cmd.remove::<TnuaXpbd3dSensorShape>();
255 + }),
256 + ("flat (underfit)", |mut cmd| {
257 + #[cfg(feature = "rapier3d")]
258 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::cylinder(
259 + 0.0, 0.49,
260 + )));
261 + #[cfg(feature = "xpbd3d")]
262 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::cylinder(0.0, 0.49)));
263 + }),
264 + ("flat (exact)", |mut cmd| {
265 + #[cfg(feature = "rapier3d")]
266 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::cylinder(
267 + 0.0, 0.5,
268 + )));
269 + #[cfg(feature = "xpbd3d")]
270 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::cylinder(0.0, 0.5)));
271 + }),
272 + ("flat (overfit)", |mut cmd| {
273 + #[cfg(feature = "rapier3d")]
274 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::cylinder(
275 + 0.0, 0.51,
276 + )));
277 + #[cfg(feature = "xpbd3d")]
278 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::cylinder(0.0, 0.51)));
279 + }),
280 + ("ball (underfit)", |mut cmd| {
281 + #[cfg(feature = "rapier3d")]
282 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::ball(0.49)));
283 + #[cfg(feature = "xpbd3d")]
284 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::sphere(0.49)));
285 + }),
286 + ("ball (exact)", |mut cmd| {
287 + #[cfg(feature = "rapier3d")]
288 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::ball(0.5)));
289 + #[cfg(feature = "xpbd3d")]
290 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::sphere(0.5)));
291 + }),
292 + ],
293 + )
294 + .with_checkbox("Lock Tilt", true, |mut cmd, lock_tilt| {
295 + // Tnua will automatically apply angular impulses/forces to fix the tilt and make
296 + // the character stand upward, but it is also possible to just let the physics
297 + // engine prevent rotation (other than around the Y axis, for turning)
298 + if lock_tilt {
299 + #[cfg(feature = "rapier3d")]
300 + cmd.insert(
301 + rapier::LockedAxes::ROTATION_LOCKED_X
302 + | rapier::LockedAxes::ROTATION_LOCKED_Z,
303 + );
304 + #[cfg(feature = "xpbd3d")]
305 + cmd.insert(xpbd::LockedAxes::new().lock_rotation_x().lock_rotation_z());
306 + } else {
307 + #[cfg(feature = "rapier3d")]
308 + cmd.insert(rapier::LockedAxes::empty());
309 + #[cfg(feature = "xpbd3d")]
310 + cmd.insert(xpbd::LockedAxes::new());
311 + }
312 + })
313 + .with_checkbox(
314 + "Phase Through Collision Groups",
315 + true,
316 + |mut cmd, use_collision_groups| {
317 + #[cfg(feature = "rapier3d")]
318 + if use_collision_groups {
319 + cmd.insert(CollisionGroups {
320 + memberships: Group::GROUP_2,
321 + filters: Group::GROUP_2,
322 + });
323 + } else {
324 + cmd.insert(CollisionGroups {
325 + memberships: Group::ALL,
326 + filters: Group::ALL,
327 + });
328 + }
329 + #[cfg(feature = "xpbd3d")]
330 + {
331 + let player_layers: LayerMask = if use_collision_groups {
332 + [LayerNames::Player].into()
333 + } else {
334 + [LayerNames::Player, LayerNames::PhaseThrough].into()
335 + };
336 + cmd.insert(CollisionLayers::new(player_layers, player_layers));
337 + }
338 + },
339 + )
|
|
returning the result of a `let` binding from a block:
demos/src/bin/platformer_2d.rs#L315
warning: returning the result of a `let` binding from a block
--> demos/src/bin/platformer_2d.rs:315:9
|
205 | / let command_altering_selectors = CommandAlteringSelectors::default()
206 | | // By default Tnua uses a raycast, but this could be a problem if the character stands
207 | | // just past the edge while part of its body is above the platform. To solve this, we
208 | | // need to cast a shape - which is physics-engine specific. We set the shape using a
... |
293 | | },
294 | | );
| |______________- unnecessary `let` binding
...
315 | 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
|
205 ~
206 | #[cfg(feature = "rapier2d")]
...
225 | );
226 ~ CommandAlteringSelectors::default()
227 + // By default Tnua uses a raycast, but this could be a problem if the character stands
228 + // just past the edge while part of its body is above the platform. To solve this, we
229 + // need to cast a shape - which is physics-engine specific. We set the shape using a
230 + // component.
231 + .with_combo(
232 + "Sensor Shape",
233 + 1,
234 + &[
235 + ("Point", |mut cmd| {
236 + #[cfg(feature = "rapier2d")]
237 + cmd.remove::<TnuaRapier2dSensorShape>();
238 + #[cfg(feature = "xpbd2d")]
239 + cmd.remove::<TnuaXpbd2dSensorShape>();
240 + }),
241 + ("Flat (underfit)", |mut cmd| {
242 + #[cfg(feature = "rapier2d")]
243 + cmd.insert(TnuaRapier2dSensorShape(rapier::Collider::cuboid(0.49, 0.0)));
244 + #[cfg(feature = "xpbd2d")]
245 + cmd.insert(TnuaXpbd2dSensorShape(xpbd::Collider::rectangle(0.99, 0.0)));
246 + }),
247 + ("Flat (exact)", |mut cmd| {
248 + #[cfg(feature = "rapier2d")]
249 + cmd.insert(TnuaRapier2dSensorShape(rapier::Collider::cuboid(0.5, 0.0)));
250 + #[cfg(feature = "xpbd2d")]
251 + cmd.insert(TnuaXpbd2dSensorShape(xpbd::Collider::rectangle(1.0, 0.0)));
252 + }),
253 + ("flat (overfit)", |mut cmd| {
254 + #[cfg(feature = "rapier2d")]
255 + cmd.insert(TnuaRapier2dSensorShape(rapier::Collider::cuboid(0.51, 0.0)));
256 + #[cfg(feature = "xpbd2d")]
257 + cmd.insert(TnuaXpbd2dSensorShape(xpbd::Collider::rectangle(1.01, 0.0)));
258 + }),
259 + ("Ball (underfit)", |mut cmd| {
260 + #[cfg(feature = "rapier2d")]
261 + cmd.insert(TnuaRapier2dSensorShape(rapier::Collider::ball(0.49)));
262 + #[cfg(feature = "xpbd2d")]
263 + cmd.insert(TnuaXpbd2dSensorShape(xpbd::Collider::circle(0.49)));
264 + }),
265 + ("Ball (exact)", |mut cmd| {
266 + #[cfg(feature = "rapier2d")]
267 + cmd.insert(TnuaRapier2dSensorShape(rapier::Collider::ball(0.5)));
268 + #[cfg(feature = "xpbd2d")]
269 + cmd.insert(TnuaXpbd2dSensorShape(xpbd::Collider::circle(0.5)));
270 + }),
271 + ],
272 + )
273 + .with_checkbox("Lock Tilt", false, |mut cmd, lock_tilt| {
274 + // Tnua will automatically apply angular impulses/forces to fix the tilt and make
275 + // the character stand upward, but it is also possible to just let the physics
276 + // engine prevent rotation (other than around the Y axis, for turning)
277 + if lock_tilt {
278 + #[cfg(feature = "rapier2d")]
279 + cmd.insert(rapier::LockedAxes::ROTATION_LOCKED);
280 + #[cfg(feature = "xpbd2d")]
281 + cmd.insert(xpbd::LockedAxes::new().lock_rotation());
282 + } else {
283 + #[cfg(feature = "rapier2d")]
284 + cmd.insert(rapier::LockedAxes::empty());
285 + #[cfg(feature = "xpbd2d")]
286 + cmd.insert(xpbd::LockedAxes::new());
287 + }
288 + })
289 + .with_checkbox(
290 + "Phase Through Collision Groups",
291 + true,
292 + |mut cmd, use_collision_groups| {
293 + #[cfg(feature = "rapier2d")]
294 + if use_collision_groups {
295 + cmd.insert(CollisionGroups {
296 + memberships: Group::GROUP_2,
297 + filters: Group::GROUP_2,
298 + });
299 + } else {
300 + cmd.insert(CollisionGroups {
301 + memberships: Group::ALL,
302 + filters: Group::ALL,
303 + });
304 + }
305 + #[cfg(feature = "xpbd2d")]
306 + {
307 + let player_layers: LayerMask = if use_collision_groups {
308 + [LayerNames::Player].into()
309 + } else {
310 + [LayerNames::Player, LayerNames::PhaseThrough].into()
311 + };
312 + cmd.insert(CollisionLayers::new(player_layers, player_layers));
313 + }
314 + },
315 + )
|
|
variable does not need to be mutable:
demos/src/bin/platformer_2d.rs#L271
warning: variable does not need to be mutable
--> demos/src/bin/platformer_2d.rs:271:18
|
271 | |mut cmd, use_collision_groups| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_2d.rs#L252
warning: variable does not need to be mutable
--> demos/src/bin/platformer_2d.rs:252:49
|
252 | .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#L244
warning: variable does not need to be mutable
--> demos/src/bin/platformer_2d.rs:244:39
|
244 | ("Ball (exact)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_2d.rs#L238
warning: variable does not need to be mutable
--> demos/src/bin/platformer_2d.rs:238:42
|
238 | ("Ball (underfit)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_2d.rs#L232
warning: variable does not need to be mutable
--> demos/src/bin/platformer_2d.rs:232:41
|
232 | ("flat (overfit)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_2d.rs#L226
warning: variable does not need to be mutable
--> demos/src/bin/platformer_2d.rs:226:39
|
226 | ("Flat (exact)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_2d.rs#L220
warning: variable does not need to be mutable
--> demos/src/bin/platformer_2d.rs:220:42
|
220 | ("Flat (underfit)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_2d.rs#L214
warning: variable does not need to be mutable
--> demos/src/bin/platformer_2d.rs:214:32
|
214 | ("Point", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` on by default
|
unused variable: `cmd`:
demos/src/bin/platformer_2d.rs#L319
warning: unused variable: `cmd`
--> demos/src/bin/platformer_2d.rs:319:59
|
319 | 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#L271
warning: unused variable: `use_collision_groups`
--> demos/src/bin/platformer_2d.rs:271:27
|
271 | |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#L271
warning: unused variable: `cmd`
--> demos/src/bin/platformer_2d.rs:271:22
|
271 | |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#L252
warning: unused variable: `cmd`
--> demos/src/bin/platformer_2d.rs:252:53
|
252 | .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#L244
warning: unused variable: `cmd`
--> demos/src/bin/platformer_2d.rs:244:43
|
244 | ("Ball (exact)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_2d.rs#L238
warning: unused variable: `cmd`
--> demos/src/bin/platformer_2d.rs:238:46
|
238 | ("Ball (underfit)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_2d.rs#L232
warning: unused variable: `cmd`
--> demos/src/bin/platformer_2d.rs:232:45
|
232 | ("flat (overfit)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_2d.rs#L226
warning: unused variable: `cmd`
--> demos/src/bin/platformer_2d.rs:226:43
|
226 | ("Flat (exact)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_2d.rs#L220
warning: unused variable: `cmd`
--> demos/src/bin/platformer_2d.rs:220:46
|
220 | ("Flat (underfit)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_2d.rs#L214
warning: unused variable: `cmd`
--> demos/src/bin/platformer_2d.rs:214:36
|
214 | ("Point", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
= note: `#[warn(unused_variables)]` on by default
|
variable does not need to be mutable:
demos/src/bin/shooter_like.rs#L311
warning: variable does not need to be mutable
--> demos/src/bin/shooter_like.rs:311:18
|
311 | |mut cmd, use_collision_groups| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/shooter_like.rs#L289
warning: variable does not need to be mutable
--> demos/src/bin/shooter_like.rs:289:48
|
289 | .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#L281
warning: variable does not need to be mutable
--> demos/src/bin/shooter_like.rs:281:39
|
281 | ("ball (exact)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/shooter_like.rs#L275
warning: variable does not need to be mutable
--> demos/src/bin/shooter_like.rs:275:42
|
275 | ("ball (underfit)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/shooter_like.rs#L267
warning: variable does not need to be mutable
--> demos/src/bin/shooter_like.rs:267:41
|
267 | ("flat (overfit)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/shooter_like.rs#L259
warning: variable does not need to be mutable
--> demos/src/bin/shooter_like.rs:259:39
|
259 | ("flat (exact)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/shooter_like.rs#L251
warning: variable does not need to be mutable
--> demos/src/bin/shooter_like.rs:251:42
|
251 | ("flat (underfit)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/shooter_like.rs#L245
warning: variable does not need to be mutable
--> demos/src/bin/shooter_like.rs:245:29
|
245 | ("no", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` on by default
|
unused variable: `cmd`:
demos/src/bin/shooter_like.rs#L357
warning: unused variable: `cmd`
--> demos/src/bin/shooter_like.rs:357:59
|
357 | 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#L311
warning: unused variable: `use_collision_groups`
--> demos/src/bin/shooter_like.rs:311:27
|
311 | |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#L311
warning: unused variable: `cmd`
--> demos/src/bin/shooter_like.rs:311:22
|
311 | |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#L289
warning: unused variable: `cmd`
--> demos/src/bin/shooter_like.rs:289:52
|
289 | .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#L281
warning: unused variable: `cmd`
--> demos/src/bin/shooter_like.rs:281:43
|
281 | ("ball (exact)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/shooter_like.rs#L275
warning: unused variable: `cmd`
--> demos/src/bin/shooter_like.rs:275:46
|
275 | ("ball (underfit)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/shooter_like.rs#L267
warning: unused variable: `cmd`
--> demos/src/bin/shooter_like.rs:267:45
|
267 | ("flat (overfit)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/shooter_like.rs#L259
warning: unused variable: `cmd`
--> demos/src/bin/shooter_like.rs:259:43
|
259 | ("flat (exact)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/shooter_like.rs#L251
warning: unused variable: `cmd`
--> demos/src/bin/shooter_like.rs:251:46
|
251 | ("flat (underfit)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/shooter_like.rs#L245
warning: unused variable: `cmd`
--> demos/src/bin/shooter_like.rs:245:33
|
245 | ("no", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
= note: `#[warn(unused_variables)]` on by default
|
variable does not need to be mutable:
demos/src/bin/platformer_3d.rs#L297
warning: variable does not need to be mutable
--> demos/src/bin/platformer_3d.rs:297:18
|
297 | |mut cmd, use_collision_groups| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_3d.rs#L275
warning: variable does not need to be mutable
--> demos/src/bin/platformer_3d.rs:275:48
|
275 | .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#L267
warning: variable does not need to be mutable
--> demos/src/bin/platformer_3d.rs:267:39
|
267 | ("ball (exact)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_3d.rs#L261
warning: variable does not need to be mutable
--> demos/src/bin/platformer_3d.rs:261:42
|
261 | ("ball (underfit)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_3d.rs#L253
warning: variable does not need to be mutable
--> demos/src/bin/platformer_3d.rs:253:41
|
253 | ("flat (overfit)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_3d.rs#L245
warning: variable does not need to be mutable
--> demos/src/bin/platformer_3d.rs:245:39
|
245 | ("flat (exact)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_3d.rs#L237
warning: variable does not need to be mutable
--> demos/src/bin/platformer_3d.rs:237:42
|
237 | ("flat (underfit)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_3d.rs#L231
warning: variable does not need to be mutable
--> demos/src/bin/platformer_3d.rs:231:29
|
231 | ("no", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` on by default
|
unused variable: `cmd`:
demos/src/bin/platformer_3d.rs#L343
warning: unused variable: `cmd`
--> demos/src/bin/platformer_3d.rs:343:59
|
343 | 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#L297
warning: unused variable: `use_collision_groups`
--> demos/src/bin/platformer_3d.rs:297:27
|
297 | |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#L297
warning: unused variable: `cmd`
--> demos/src/bin/platformer_3d.rs:297:22
|
297 | |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#L275
warning: unused variable: `cmd`
--> demos/src/bin/platformer_3d.rs:275:52
|
275 | .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#L267
warning: unused variable: `cmd`
--> demos/src/bin/platformer_3d.rs:267:43
|
267 | ("ball (exact)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_3d.rs#L261
warning: unused variable: `cmd`
--> demos/src/bin/platformer_3d.rs:261:46
|
261 | ("ball (underfit)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_3d.rs#L253
warning: unused variable: `cmd`
--> demos/src/bin/platformer_3d.rs:253:45
|
253 | ("flat (overfit)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_3d.rs#L245
warning: unused variable: `cmd`
--> demos/src/bin/platformer_3d.rs:245:43
|
245 | ("flat (exact)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_3d.rs#L237
warning: unused variable: `cmd`
--> demos/src/bin/platformer_3d.rs:237:46
|
237 | ("flat (underfit)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_3d.rs#L231
warning: unused variable: `cmd`
--> demos/src/bin/platformer_3d.rs:231:33
|
231 | ("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#L315
warning: returning the result of a `let` binding from a block
--> demos/src/bin/platformer_2d.rs:315:9
|
205 | / let command_altering_selectors = CommandAlteringSelectors::default()
206 | | // By default Tnua uses a raycast, but this could be a problem if the character stands
207 | | // just past the edge while part of its body is above the platform. To solve this, we
208 | | // need to cast a shape - which is physics-engine specific. We set the shape using a
... |
293 | | },
294 | | );
| |______________- unnecessary `let` binding
...
315 | 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
|
205 ~
206 | #[cfg(feature = "rapier2d")]
...
225 | );
226 ~ CommandAlteringSelectors::default()
227 + // By default Tnua uses a raycast, but this could be a problem if the character stands
228 + // just past the edge while part of its body is above the platform. To solve this, we
229 + // need to cast a shape - which is physics-engine specific. We set the shape using a
230 + // component.
231 + .with_combo(
232 + "Sensor Shape",
233 + 1,
234 + &[
235 + ("Point", |mut cmd| {
236 + #[cfg(feature = "rapier2d")]
237 + cmd.remove::<TnuaRapier2dSensorShape>();
238 + #[cfg(feature = "xpbd2d")]
239 + cmd.remove::<TnuaXpbd2dSensorShape>();
240 + }),
241 + ("Flat (underfit)", |mut cmd| {
242 + #[cfg(feature = "rapier2d")]
243 + cmd.insert(TnuaRapier2dSensorShape(rapier::Collider::cuboid(0.49, 0.0)));
244 + #[cfg(feature = "xpbd2d")]
245 + cmd.insert(TnuaXpbd2dSensorShape(xpbd::Collider::rectangle(0.99, 0.0)));
246 + }),
247 + ("Flat (exact)", |mut cmd| {
248 + #[cfg(feature = "rapier2d")]
249 + cmd.insert(TnuaRapier2dSensorShape(rapier::Collider::cuboid(0.5, 0.0)));
250 + #[cfg(feature = "xpbd2d")]
251 + cmd.insert(TnuaXpbd2dSensorShape(xpbd::Collider::rectangle(1.0, 0.0)));
252 + }),
253 + ("flat (overfit)", |mut cmd| {
254 + #[cfg(feature = "rapier2d")]
255 + cmd.insert(TnuaRapier2dSensorShape(rapier::Collider::cuboid(0.51, 0.0)));
256 + #[cfg(feature = "xpbd2d")]
257 + cmd.insert(TnuaXpbd2dSensorShape(xpbd::Collider::rectangle(1.01, 0.0)));
258 + }),
259 + ("Ball (underfit)", |mut cmd| {
260 + #[cfg(feature = "rapier2d")]
261 + cmd.insert(TnuaRapier2dSensorShape(rapier::Collider::ball(0.49)));
262 + #[cfg(feature = "xpbd2d")]
263 + cmd.insert(TnuaXpbd2dSensorShape(xpbd::Collider::circle(0.49)));
264 + }),
265 + ("Ball (exact)", |mut cmd| {
266 + #[cfg(feature = "rapier2d")]
267 + cmd.insert(TnuaRapier2dSensorShape(rapier::Collider::ball(0.5)));
268 + #[cfg(feature = "xpbd2d")]
269 + cmd.insert(TnuaXpbd2dSensorShape(xpbd::Collider::circle(0.5)));
270 + }),
271 + ],
272 + )
273 + .with_checkbox("Lock Tilt", false, |mut cmd, lock_tilt| {
274 + // Tnua will automatically apply angular impulses/forces to fix the tilt and make
275 + // the character stand upward, but it is also possible to just let the physics
276 + // engine prevent rotation (other than around the Y axis, for turning)
277 + if lock_tilt {
278 + #[cfg(feature = "rapier2d")]
279 + cmd.insert(rapier::LockedAxes::ROTATION_LOCKED);
280 + #[cfg(feature = "xpbd2d")]
281 + cmd.insert(xpbd::LockedAxes::new().lock_rotation());
282 + } else {
283 + #[cfg(feature = "rapier2d")]
284 + cmd.insert(rapier::LockedAxes::empty());
285 + #[cfg(feature = "xpbd2d")]
286 + cmd.insert(xpbd::LockedAxes::new());
287 + }
288 + })
289 + .with_checkbox(
290 + "Phase Through Collision Groups",
291 + true,
292 + |mut cmd, use_collision_groups| {
293 + #[cfg(feature = "rapier2d")]
294 + if use_collision_groups {
295 + cmd.insert(CollisionGroups {
296 + memberships: Group::GROUP_2,
297 + filters: Group::GROUP_2,
298 + });
299 + } else {
300 + cmd.insert(CollisionGroups {
301 + memberships: Group::ALL,
302 + filters: Group::ALL,
303 + });
304 + }
305 + #[cfg(feature = "xpbd2d")]
306 + {
307 + let player_layers: LayerMask = if use_collision_groups {
308 + [LayerNames::Player].into()
309 + } else {
310 + [LayerNames::Player, LayerNames::PhaseThrough].into()
311 + };
312 + cmd.insert(CollisionLayers::new(player_layers, player_layers));
313 + }
314 + },
315 + )
|
|
returning the result of a `let` binding from a block:
demos/src/bin/shooter_like.rs#L353
warning: returning the result of a `let` binding from a block
--> demos/src/bin/shooter_like.rs:353:9
|
236 | / let command_altering_selectors = CommandAlteringSelectors::default()
237 | | // By default Tnua uses a raycast, but this could be a problem if the character stands
238 | | // just past the edge while part of its body is above the platform. To solve this, we
239 | | // need to cast a shape - which is physics-engine specific. We set the shape using a
... |
333 | | },
334 | | );
| |______________- unnecessary `let` binding
...
353 | 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
|
236 ~
237 | #[cfg(feature = "rapier3d")]
...
254 | );
255 ~ CommandAlteringSelectors::default()
256 + // By default Tnua uses a raycast, but this could be a problem if the character stands
257 + // just past the edge while part of its body is above the platform. To solve this, we
258 + // need to cast a shape - which is physics-engine specific. We set the shape using a
259 + // component.
260 + .with_combo(
261 + "Sensor Shape",
262 + 1,
263 + &[
264 + ("no", |mut cmd| {
265 + #[cfg(feature = "rapier3d")]
266 + cmd.remove::<TnuaRapier3dSensorShape>();
267 + #[cfg(feature = "xpbd3d")]
268 + cmd.remove::<TnuaXpbd3dSensorShape>();
269 + }),
270 + ("flat (underfit)", |mut cmd| {
271 + #[cfg(feature = "rapier3d")]
272 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::cylinder(
273 + 0.0, 0.49,
274 + )));
275 + #[cfg(feature = "xpbd3d")]
276 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::cylinder(0.0, 0.49)));
277 + }),
278 + ("flat (exact)", |mut cmd| {
279 + #[cfg(feature = "rapier3d")]
280 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::cylinder(
281 + 0.0, 0.5,
282 + )));
283 + #[cfg(feature = "xpbd3d")]
284 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::cylinder(0.0, 0.5)));
285 + }),
286 + ("flat (overfit)", |mut cmd| {
287 + #[cfg(feature = "rapier3d")]
288 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::cylinder(
289 + 0.0, 0.51,
290 + )));
291 + #[cfg(feature = "xpbd3d")]
292 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::cylinder(0.0, 0.51)));
293 + }),
294 + ("ball (underfit)", |mut cmd| {
295 + #[cfg(feature = "rapier3d")]
296 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::ball(0.49)));
297 + #[cfg(feature = "xpbd3d")]
298 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::sphere(0.49)));
299 + }),
300 + ("ball (exact)", |mut cmd| {
301 + #[cfg(feature = "rapier3d")]
302 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::ball(0.5)));
303 + #[cfg(feature = "xpbd3d")]
304 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::sphere(0.5)));
305 + }),
306 + ],
307 + )
308 + .with_checkbox("Lock Tilt", true, |mut cmd, lock_tilt| {
309 + // Tnua will automatically apply angular impulses/forces to fix the tilt and make
310 + // the character stand upward, but it is also possible to just let the physics
311 + // engine prevent rotation (other than around the Y axis, for turning)
312 + if lock_tilt {
313 + #[cfg(feature = "rapier3d")]
314 + cmd.insert(
315 + rapier::LockedAxes::ROTATION_LOCKED_X
316 + | rapier::LockedAxes::ROTATION_LOCKED_Z,
317 + );
318 + #[cfg(feature = "xpbd3d")]
319 + cmd.insert(xpbd::LockedAxes::new().lock_rotation_x().lock_rotation_z());
320 + } else {
321 + #[cfg(feature = "rapier3d")]
322 + cmd.insert(rapier::LockedAxes::empty());
323 + #[cfg(feature = "xpbd3d")]
324 + cmd.insert(xpbd::LockedAxes::new());
325 + }
326 + })
327 + .with_checkbox(
328 + "Phase Through Collision Groups",
329 + true,
330 + |mut cmd, use_collision_groups| {
331 + #[cfg(feature = "rapier3d")]
332 + if use_collision_groups {
333 + cmd.insert(CollisionGroups {
334 + memberships: Group::GROUP_2,
335 + filters: Group::GROUP_2,
336 + });
337 + } else {
338 + cmd.insert(CollisionGroups {
339 + memberships: Group::ALL,
340 + filters: Group::ALL,
341 + });
342 + }
343 + #[cfg(feature = "xpbd3d")]
344 + {
345 + let player_layers: LayerMask = if use_collision_groups {
346 + [LayerNames::Player].into()
347 + } else {
348 + [LayerNames::Player, LayerNames::PhaseThrough].into()
349 + };
350 + cmd.insert(CollisionLayers::new(player_layers, player_layers));
351 + }
352 + },
353 + )
|
|
variable does not need to be mutable:
demos/src/bin/platformer_2d.rs#L271
warning: variable does not need to be mutable
--> demos/src/bin/platformer_2d.rs:271:18
|
271 | |mut cmd, use_collision_groups| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_2d.rs#L252
warning: variable does not need to be mutable
--> demos/src/bin/platformer_2d.rs:252:49
|
252 | .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#L244
warning: variable does not need to be mutable
--> demos/src/bin/platformer_2d.rs:244:39
|
244 | ("Ball (exact)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_2d.rs#L238
warning: variable does not need to be mutable
--> demos/src/bin/platformer_2d.rs:238:42
|
238 | ("Ball (underfit)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_2d.rs#L232
warning: variable does not need to be mutable
--> demos/src/bin/platformer_2d.rs:232:41
|
232 | ("flat (overfit)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_2d.rs#L226
warning: variable does not need to be mutable
--> demos/src/bin/platformer_2d.rs:226:39
|
226 | ("Flat (exact)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_2d.rs#L220
warning: variable does not need to be mutable
--> demos/src/bin/platformer_2d.rs:220:42
|
220 | ("Flat (underfit)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_2d.rs#L214
warning: variable does not need to be mutable
--> demos/src/bin/platformer_2d.rs:214:32
|
214 | ("Point", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` on by default
|
unused variable: `cmd`:
demos/src/bin/platformer_2d.rs#L319
warning: unused variable: `cmd`
--> demos/src/bin/platformer_2d.rs:319:59
|
319 | 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#L271
warning: unused variable: `use_collision_groups`
--> demos/src/bin/platformer_2d.rs:271:27
|
271 | |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#L271
warning: unused variable: `cmd`
--> demos/src/bin/platformer_2d.rs:271:22
|
271 | |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#L252
warning: unused variable: `cmd`
--> demos/src/bin/platformer_2d.rs:252:53
|
252 | .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#L244
warning: unused variable: `cmd`
--> demos/src/bin/platformer_2d.rs:244:43
|
244 | ("Ball (exact)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_2d.rs#L238
warning: unused variable: `cmd`
--> demos/src/bin/platformer_2d.rs:238:46
|
238 | ("Ball (underfit)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_2d.rs#L232
warning: unused variable: `cmd`
--> demos/src/bin/platformer_2d.rs:232:45
|
232 | ("flat (overfit)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_2d.rs#L226
warning: unused variable: `cmd`
--> demos/src/bin/platformer_2d.rs:226:43
|
226 | ("Flat (exact)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_2d.rs#L220
warning: unused variable: `cmd`
--> demos/src/bin/platformer_2d.rs:220:46
|
220 | ("Flat (underfit)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_2d.rs#L214
warning: unused variable: `cmd`
--> demos/src/bin/platformer_2d.rs:214:36
|
214 | ("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#L339
warning: returning the result of a `let` binding from a block
--> demos/src/bin/platformer_3d.rs:339:9
|
222 | / let command_altering_selectors = CommandAlteringSelectors::default()
223 | | // By default Tnua uses a raycast, but this could be a problem if the character stands
224 | | // just past the edge while part of its body is above the platform. To solve this, we
225 | | // need to cast a shape - which is physics-engine specific. We set the shape using a
... |
319 | | },
320 | | );
| |______________- unnecessary `let` binding
...
339 | 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
|
222 ~
223 | #[cfg(feature = "rapier3d")]
...
240 | );
241 ~ CommandAlteringSelectors::default()
242 + // By default Tnua uses a raycast, but this could be a problem if the character stands
243 + // just past the edge while part of its body is above the platform. To solve this, we
244 + // need to cast a shape - which is physics-engine specific. We set the shape using a
245 + // component.
246 + .with_combo(
247 + "Sensor Shape",
248 + 1,
249 + &[
250 + ("no", |mut cmd| {
251 + #[cfg(feature = "rapier3d")]
252 + cmd.remove::<TnuaRapier3dSensorShape>();
253 + #[cfg(feature = "xpbd3d")]
254 + cmd.remove::<TnuaXpbd3dSensorShape>();
255 + }),
256 + ("flat (underfit)", |mut cmd| {
257 + #[cfg(feature = "rapier3d")]
258 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::cylinder(
259 + 0.0, 0.49,
260 + )));
261 + #[cfg(feature = "xpbd3d")]
262 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::cylinder(0.0, 0.49)));
263 + }),
264 + ("flat (exact)", |mut cmd| {
265 + #[cfg(feature = "rapier3d")]
266 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::cylinder(
267 + 0.0, 0.5,
268 + )));
269 + #[cfg(feature = "xpbd3d")]
270 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::cylinder(0.0, 0.5)));
271 + }),
272 + ("flat (overfit)", |mut cmd| {
273 + #[cfg(feature = "rapier3d")]
274 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::cylinder(
275 + 0.0, 0.51,
276 + )));
277 + #[cfg(feature = "xpbd3d")]
278 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::cylinder(0.0, 0.51)));
279 + }),
280 + ("ball (underfit)", |mut cmd| {
281 + #[cfg(feature = "rapier3d")]
282 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::ball(0.49)));
283 + #[cfg(feature = "xpbd3d")]
284 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::sphere(0.49)));
285 + }),
286 + ("ball (exact)", |mut cmd| {
287 + #[cfg(feature = "rapier3d")]
288 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::ball(0.5)));
289 + #[cfg(feature = "xpbd3d")]
290 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::sphere(0.5)));
291 + }),
292 + ],
293 + )
294 + .with_checkbox("Lock Tilt", true, |mut cmd, lock_tilt| {
295 + // Tnua will automatically apply angular impulses/forces to fix the tilt and make
296 + // the character stand upward, but it is also possible to just let the physics
297 + // engine prevent rotation (other than around the Y axis, for turning)
298 + if lock_tilt {
299 + #[cfg(feature = "rapier3d")]
300 + cmd.insert(
301 + rapier::LockedAxes::ROTATION_LOCKED_X
302 + | rapier::LockedAxes::ROTATION_LOCKED_Z,
303 + );
304 + #[cfg(feature = "xpbd3d")]
305 + cmd.insert(xpbd::LockedAxes::new().lock_rotation_x().lock_rotation_z());
306 + } else {
307 + #[cfg(feature = "rapier3d")]
308 + cmd.insert(rapier::LockedAxes::empty());
309 + #[cfg(feature = "xpbd3d")]
310 + cmd.insert(xpbd::LockedAxes::new());
311 + }
312 + })
313 + .with_checkbox(
314 + "Phase Through Collision Groups",
315 + true,
316 + |mut cmd, use_collision_groups| {
317 + #[cfg(feature = "rapier3d")]
318 + if use_collision_groups {
319 + cmd.insert(CollisionGroups {
320 + memberships: Group::GROUP_2,
321 + filters: Group::GROUP_2,
322 + });
323 + } else {
324 + cmd.insert(CollisionGroups {
325 + memberships: Group::ALL,
326 + filters: Group::ALL,
327 + });
328 + }
329 + #[cfg(feature = "xpbd3d")]
330 + {
331 + let player_layers: LayerMask = if use_collision_groups {
332 + [LayerNames::Player].into()
333 + } else {
334 + [LayerNames::Player, LayerNames::PhaseThrough].into()
335 + };
336 + cmd.insert(CollisionLayers::new(player_layers, player_layers));
337 + }
338 + },
339 + )
|
|
variable does not need to be mutable:
demos/src/bin/platformer_3d.rs#L297
warning: variable does not need to be mutable
--> demos/src/bin/platformer_3d.rs:297:18
|
297 | |mut cmd, use_collision_groups| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_3d.rs#L275
warning: variable does not need to be mutable
--> demos/src/bin/platformer_3d.rs:275:48
|
275 | .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#L267
warning: variable does not need to be mutable
--> demos/src/bin/platformer_3d.rs:267:39
|
267 | ("ball (exact)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_3d.rs#L261
warning: variable does not need to be mutable
--> demos/src/bin/platformer_3d.rs:261:42
|
261 | ("ball (underfit)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_3d.rs#L253
warning: variable does not need to be mutable
--> demos/src/bin/platformer_3d.rs:253:41
|
253 | ("flat (overfit)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_3d.rs#L245
warning: variable does not need to be mutable
--> demos/src/bin/platformer_3d.rs:245:39
|
245 | ("flat (exact)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/shooter_like.rs#L311
warning: variable does not need to be mutable
--> demos/src/bin/shooter_like.rs:311:18
|
311 | |mut cmd, use_collision_groups| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/shooter_like.rs#L289
warning: variable does not need to be mutable
--> demos/src/bin/shooter_like.rs:289:48
|
289 | .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#L237
warning: variable does not need to be mutable
--> demos/src/bin/platformer_3d.rs:237:42
|
237 | ("flat (underfit)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/platformer_3d.rs#L231
warning: variable does not need to be mutable
--> demos/src/bin/platformer_3d.rs:231:29
|
231 | ("no", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` on by default
|
variable does not need to be mutable:
demos/src/bin/shooter_like.rs#L281
warning: variable does not need to be mutable
--> demos/src/bin/shooter_like.rs:281:39
|
281 | ("ball (exact)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/shooter_like.rs#L275
warning: variable does not need to be mutable
--> demos/src/bin/shooter_like.rs:275:42
|
275 | ("ball (underfit)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/shooter_like.rs#L267
warning: variable does not need to be mutable
--> demos/src/bin/shooter_like.rs:267:41
|
267 | ("flat (overfit)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/shooter_like.rs#L259
warning: variable does not need to be mutable
--> demos/src/bin/shooter_like.rs:259:39
|
259 | ("flat (exact)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/shooter_like.rs#L251
warning: variable does not need to be mutable
--> demos/src/bin/shooter_like.rs:251:42
|
251 | ("flat (underfit)", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
demos/src/bin/shooter_like.rs#L245
warning: variable does not need to be mutable
--> demos/src/bin/shooter_like.rs:245:29
|
245 | ("no", |mut cmd| {
| ----^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` on by default
|
unused variable: `cmd`:
demos/src/bin/platformer_3d.rs#L343
warning: unused variable: `cmd`
--> demos/src/bin/platformer_3d.rs:343:59
|
343 | 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#L297
warning: unused variable: `use_collision_groups`
--> demos/src/bin/platformer_3d.rs:297:27
|
297 | |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#L297
warning: unused variable: `cmd`
--> demos/src/bin/platformer_3d.rs:297:22
|
297 | |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#L275
warning: unused variable: `cmd`
--> demos/src/bin/platformer_3d.rs:275:52
|
275 | .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#L267
warning: unused variable: `cmd`
--> demos/src/bin/platformer_3d.rs:267:43
|
267 | ("ball (exact)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_3d.rs#L261
warning: unused variable: `cmd`
--> demos/src/bin/platformer_3d.rs:261:46
|
261 | ("ball (underfit)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_3d.rs#L253
warning: unused variable: `cmd`
--> demos/src/bin/platformer_3d.rs:253:45
|
253 | ("flat (overfit)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_3d.rs#L245
warning: unused variable: `cmd`
--> demos/src/bin/platformer_3d.rs:245:43
|
245 | ("flat (exact)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_3d.rs#L237
warning: unused variable: `cmd`
--> demos/src/bin/platformer_3d.rs:237:46
|
237 | ("flat (underfit)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/shooter_like.rs#L357
warning: unused variable: `cmd`
--> demos/src/bin/shooter_like.rs:357:59
|
357 | cmd.insert(TnuaCrouchEnforcer::new(0.5 * Vector3::Y, |cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/platformer_3d.rs#L231
warning: unused variable: `cmd`
--> demos/src/bin/platformer_3d.rs:231:33
|
231 | ("no", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
= note: `#[warn(unused_variables)]` on by default
|
unused variable: `use_collision_groups`:
demos/src/bin/shooter_like.rs#L311
warning: unused variable: `use_collision_groups`
--> demos/src/bin/shooter_like.rs:311:27
|
311 | |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#L311
warning: unused variable: `cmd`
--> demos/src/bin/shooter_like.rs:311:22
|
311 | |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#L289
warning: unused variable: `cmd`
--> demos/src/bin/shooter_like.rs:289:52
|
289 | .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#L281
warning: unused variable: `cmd`
--> demos/src/bin/shooter_like.rs:281:43
|
281 | ("ball (exact)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/shooter_like.rs#L275
warning: unused variable: `cmd`
--> demos/src/bin/shooter_like.rs:275:46
|
275 | ("ball (underfit)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/shooter_like.rs#L267
warning: unused variable: `cmd`
--> demos/src/bin/shooter_like.rs:267:45
|
267 | ("flat (overfit)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/shooter_like.rs#L259
warning: unused variable: `cmd`
--> demos/src/bin/shooter_like.rs:259:43
|
259 | ("flat (exact)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/shooter_like.rs#L251
warning: unused variable: `cmd`
--> demos/src/bin/shooter_like.rs:251:46
|
251 | ("flat (underfit)", |mut cmd| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
|
unused variable: `cmd`:
demos/src/bin/shooter_like.rs#L245
warning: unused variable: `cmd`
--> demos/src/bin/shooter_like.rs:245:33
|
245 | ("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
|
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
|
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, 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/
|
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/
|
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:
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/[email protected], 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/[email protected], 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/
|
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/
|
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 1959587840 bytes exceeds the allowed size of 1 GB. Deployment might fail.
|