Skip to content

replace all usages of std with core and alloc

9a333b0
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Open

replace all usages of std with core and alloc #1

replace all usages of std with core and alloc
9a333b0
Select commit
Loading
Failed to load commit list.
GitHub Actions / clippy succeeded Apr 23, 2025 in 0s

clippy

31 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 31
Note 0
Help 0

Versions

  • rustc 1.86.0 (05f9846f8 2025-03-31)
  • cargo 1.86.0 (adf9b6ad1 2025-02-28)
  • clippy 0.1.86 (05f9846f89 2025-03-31)

Annotations

Check warning on line 18 in demos/src/character_control_systems/info_dumpeing_systems.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

very complex type used. Consider factoring parts into `type` definitions

warning: very complex type used. Consider factoring parts into `type` definitions
  --> demos/src/character_control_systems/info_dumpeing_systems.rs:12:16
   |
12 |       mut query: Query<(
   |  ________________^
13 | |         &mut InfoSource,
14 | |         &TnuaController,
15 | |         &TnuaProximitySensor,
16 | |         Option<&TnuaGhostSensor>,
17 | |         Option<&TnuaObstacleRadar>,
18 | |     )>,
   | |______^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
   = note: `#[warn(clippy::type_complexity)]` on by default

Check warning on line 18 in demos/src/character_control_systems/info_dumpeing_systems.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

very complex type used. Consider factoring parts into `type` definitions

warning: very complex type used. Consider factoring parts into `type` definitions
  --> demos/src/character_control_systems/info_dumpeing_systems.rs:12:16
   |
12 |       mut query: Query<(
   |  ________________^
13 | |         &mut InfoSource,
14 | |         &TnuaController,
15 | |         &TnuaProximitySensor,
16 | |         Option<&TnuaGhostSensor>,
17 | |         Option<&TnuaObstacleRadar>,
18 | |     )>,
   | |______^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
   = note: `#[warn(clippy::type_complexity)]` on by default

Check warning on line 420 in demos/src/character_control_systems/platformer_control_systems.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this `else { if .. }` block can be collapsed

warning: this `else { if .. }` block can be collapsed
   --> demos/src/character_control_systems/platformer_control_systems.rs:414:36
    |
414 |   ...                   } else {
    |  ______________________________^
415 | | ...                       if initiation_direction == Vector3::ZERO {
416 | | ...                           continue 'blips_loop;
417 | | ...                       } else {
...   |
420 | | ...                   }
    | |_______________________^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_else_if
    = note: `#[warn(clippy::collapsible_else_if)]` on by default
help: collapse nested if block
    |
414 ~                             } else if initiation_direction == Vector3::ZERO {
415 +                                 continue 'blips_loop;
416 +                             } else {
417 +                                 action.desired_climb_velocity = Vector3::ZERO;
418 +                             }
    |

Check warning on line 9 in demos/src/character_control_systems/info_dumpeing_systems.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `super::spatial_ext_facade::SpatialExtFacade`

warning: unused import: `super::spatial_ext_facade::SpatialExtFacade`
 --> demos/src/character_control_systems/info_dumpeing_systems.rs:9:5
  |
9 | use super::spatial_ext_facade::SpatialExtFacade;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check warning on line 4 in demos/src/character_control_systems/info_dumpeing_systems.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused imports: `math::AsF32` and `radar_lens::TnuaRadarLens`

warning: unused imports: `math::AsF32` and `radar_lens::TnuaRadarLens`
 --> demos/src/character_control_systems/info_dumpeing_systems.rs:4:5
  |
4 |     math::AsF32, radar_lens::TnuaRadarLens, TnuaGhostSensor, TnuaObstacleRadar, TnuaProximitySensor,
  |     ^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^

Check warning on line 420 in demos/src/character_control_systems/platformer_control_systems.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this `else { if .. }` block can be collapsed

warning: this `else { if .. }` block can be collapsed
   --> demos/src/character_control_systems/platformer_control_systems.rs:414:36
    |
414 |   ...                   } else {
    |  ______________________________^
415 | | ...                       if initiation_direction == Vector3::ZERO {
416 | | ...                           continue 'blips_loop;
417 | | ...                       } else {
...   |
420 | | ...                   }
    | |_______________________^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_else_if
    = note: `#[warn(clippy::collapsible_else_if)]` on by default
help: collapse nested if block
    |
414 ~                             } else if initiation_direction == Vector3::ZERO {
415 +                                 continue 'blips_loop;
416 +                             } else {
417 +                                 action.desired_climb_velocity = Vector3::ZERO;
418 +                             }
    |

Check warning on line 9 in demos/src/character_control_systems/info_dumpeing_systems.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `super::spatial_ext_facade::SpatialExtFacade`

warning: unused import: `super::spatial_ext_facade::SpatialExtFacade`
 --> demos/src/character_control_systems/info_dumpeing_systems.rs:9:5
  |
9 | use super::spatial_ext_facade::SpatialExtFacade;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check warning on line 4 in demos/src/character_control_systems/info_dumpeing_systems.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused imports: `math::AsF32` and `radar_lens::TnuaRadarLens`

warning: unused imports: `math::AsF32` and `radar_lens::TnuaRadarLens`
 --> demos/src/character_control_systems/info_dumpeing_systems.rs:4:5
  |
4 |     math::AsF32, radar_lens::TnuaRadarLens, TnuaGhostSensor, TnuaObstacleRadar, TnuaProximitySensor,
  |     ^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^

Check warning on line 1 in demos/src/character_control_systems/info_dumpeing_systems.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `color::palettes::css`

warning: unused import: `color::palettes::css`
 --> demos/src/character_control_systems/info_dumpeing_systems.rs:1:12
  |
1 | use bevy::{color::palettes::css, prelude::*};
  |            ^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

Check warning on line 436 in rapier2d/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

very complex type used. Consider factoring parts into `type` definitions

warning: very complex type used. Consider factoring parts into `type` definitions
   --> rapier2d/src/lib.rs:429:16
    |
429 |       mut query: Query<(
    |  ________________^
430 | |         &TnuaMotor,
431 | |         &mut Velocity,
432 | |         &ReadMassProperties,
...   |
435 | |         Option<&TnuaGravity>,
436 | |     )>,
    | |______^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity

Check warning on line 233 in rapier2d/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this expression creates a reference which is immediately dereferenced by the compiler

warning: this expression creates a reference which is immediately dereferenced by the compiler
   --> rapier2d/src/lib.rs:233:38
    |
233 |                         get_collider(&rapier_context.colliders, other_entity)
    |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `rapier_context.colliders`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Check warning on line 209 in rapier2d/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this expression creates a reference which is immediately dereferenced by the compiler

warning: this expression creates a reference which is immediately dereferenced by the compiler
   --> rapier2d/src/lib.rs:209:47
    |
209 |             let owner_collider = get_collider(&rapier_context.colliders, owner_entity);
    |                                               ^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `rapier_context.colliders`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
    = note: `#[warn(clippy::needless_borrow)]` on by default

Check warning on line 121 in rapier2d/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

very complex type used. Consider factoring parts into `type` definitions

warning: very complex type used. Consider factoring parts into `type` definitions
   --> rapier2d/src/lib.rs:115:16
    |
115 |       mut query: Query<(
    |  ________________^
116 | |         &GlobalTransform,
117 | |         &Velocity,
118 | |         &mut TnuaRigidBodyTracker,
119 | |         Option<&TnuaToggle>,
120 | |         Option<&TnuaGravity>,
121 | |     )>,
    | |______^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
    = note: `#[warn(clippy::type_complexity)]` on by default

Check warning on line 103 in rapier2d/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated struct `TnuaRapier2dIOBundle`: All uses can be safely removed, components are added via bevy's required components

warning: use of deprecated struct `TnuaRapier2dIOBundle`: All uses can be safely removed, components are added via bevy's required components
   --> rapier2d/src/lib.rs:103:12
    |
103 | pub struct TnuaRapier2dIOBundle {
    |            ^^^^^^^^^^^^^^^^^^^^

Check warning on line 103 in rapier2d/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated struct `TnuaRapier2dIOBundle`: All uses can be safely removed, components are added via bevy's required components

warning: use of deprecated struct `TnuaRapier2dIOBundle`: All uses can be safely removed, components are added via bevy's required components
   --> rapier2d/src/lib.rs:103:12
    |
103 | pub struct TnuaRapier2dIOBundle {
    |            ^^^^^^^^^^^^^^^^^^^^
    |
    = note: `#[warn(deprecated)]` on by default

Check warning on line 205 in rapier3d/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this expression creates a reference which is immediately dereferenced by the compiler

warning: this expression creates a reference which is immediately dereferenced by the compiler
   --> rapier3d/src/lib.rs:205:47
    |
205 |             let owner_collider = get_collider(&rapier_context.colliders, owner_entity);
    |                                               ^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `rapier_context.colliders`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
    = note: `#[warn(clippy::needless_borrow)]` on by default

Check warning on line 121 in rapier3d/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

very complex type used. Consider factoring parts into `type` definitions

warning: very complex type used. Consider factoring parts into `type` definitions
   --> rapier3d/src/lib.rs:115:16
    |
115 |       mut query: Query<(
    |  ________________^
116 | |         &GlobalTransform,
117 | |         &Velocity,
118 | |         &mut TnuaRigidBodyTracker,
119 | |         Option<&TnuaToggle>,
120 | |         Option<&TnuaGravity>,
121 | |     )>,
    | |______^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
    = note: `#[warn(clippy::type_complexity)]` on by default

Check warning on line 103 in rapier3d/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated struct `TnuaRapier3dIOBundle`: All uses can be safely removed, components are added via bevy's required components

warning: use of deprecated struct `TnuaRapier3dIOBundle`: All uses can be safely removed, components are added via bevy's required components
   --> rapier3d/src/lib.rs:103:12
    |
103 | pub struct TnuaRapier3dIOBundle {
    |            ^^^^^^^^^^^^^^^^^^^^

Check warning on line 103 in rapier3d/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated struct `TnuaRapier3dIOBundle`: All uses can be safely removed, components are added via bevy's required components

warning: use of deprecated struct `TnuaRapier3dIOBundle`: All uses can be safely removed, components are added via bevy's required components
   --> rapier3d/src/lib.rs:103:12
    |
103 | pub struct TnuaRapier3dIOBundle {
    |            ^^^^^^^^^^^^^^^^^^^^
    |
    = note: `#[warn(deprecated)]` on by default

Check warning on line 436 in rapier2d/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

very complex type used. Consider factoring parts into `type` definitions

warning: very complex type used. Consider factoring parts into `type` definitions
   --> rapier2d/src/lib.rs:429:16
    |
429 |       mut query: Query<(
    |  ________________^
430 | |         &TnuaMotor,
431 | |         &mut Velocity,
432 | |         &ReadMassProperties,
...   |
435 | |         Option<&TnuaGravity>,
436 | |     )>,
    | |______^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity

Check warning on line 233 in rapier2d/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this expression creates a reference which is immediately dereferenced by the compiler

warning: this expression creates a reference which is immediately dereferenced by the compiler
   --> rapier2d/src/lib.rs:233:38
    |
233 |                         get_collider(&rapier_context.colliders, other_entity)
    |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `rapier_context.colliders`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Check warning on line 209 in rapier2d/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this expression creates a reference which is immediately dereferenced by the compiler

warning: this expression creates a reference which is immediately dereferenced by the compiler
   --> rapier2d/src/lib.rs:209:47
    |
209 |             let owner_collider = get_collider(&rapier_context.colliders, owner_entity);
    |                                               ^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `rapier_context.colliders`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
    = note: `#[warn(clippy::needless_borrow)]` on by default

Check warning on line 121 in rapier2d/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

very complex type used. Consider factoring parts into `type` definitions

warning: very complex type used. Consider factoring parts into `type` definitions
   --> rapier2d/src/lib.rs:115:16
    |
115 |       mut query: Query<(
    |  ________________^
116 | |         &GlobalTransform,
117 | |         &Velocity,
118 | |         &mut TnuaRigidBodyTracker,
119 | |         Option<&TnuaToggle>,
120 | |         Option<&TnuaGravity>,
121 | |     )>,
    | |______^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
    = note: `#[warn(clippy::type_complexity)]` on by default

Check warning on line 103 in rapier2d/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated struct `TnuaRapier2dIOBundle`: All uses can be safely removed, components are added via bevy's required components

warning: use of deprecated struct `TnuaRapier2dIOBundle`: All uses can be safely removed, components are added via bevy's required components
   --> rapier2d/src/lib.rs:103:12
    |
103 | pub struct TnuaRapier2dIOBundle {
    |            ^^^^^^^^^^^^^^^^^^^^

Check warning on line 103 in rapier2d/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated struct `TnuaRapier2dIOBundle`: All uses can be safely removed, components are added via bevy's required components

warning: use of deprecated struct `TnuaRapier2dIOBundle`: All uses can be safely removed, components are added via bevy's required components
   --> rapier2d/src/lib.rs:103:12
    |
103 | pub struct TnuaRapier2dIOBundle {
    |            ^^^^^^^^^^^^^^^^^^^^
    |
    = note: `#[warn(deprecated)]` on by default