Skip to content

upd to recent bevy #117

upd to recent bevy

upd to recent bevy #117

GitHub Actions / clippy failed Apr 2, 2024 in 0s

clippy

12 errors

Details

Results

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

Versions

  • rustc 1.79.0-nightly (1684a753d 2024-04-01)
  • cargo 1.79.0-nightly (a59aba136 2024-03-28)
  • clippy 0.1.79 (1684a75 2024-04-01)

Annotations

Check failure on line 104 in src/adapters.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated field `bevy::prelude::shape::Capsule::depth`: please use the `Capsule3d` primitive in `bevy_math` instead

error: use of deprecated field `bevy::prelude::shape::Capsule::depth`: please use the `Capsule3d` primitive in `bevy_math` instead
   --> src/adapters.rs:104:13
    |
104 |             depth: size[2] * 2.0,
    |             ^^^^^^^^^^^^^^^^^^^^

Check failure on line 103 in src/adapters.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated field `bevy::prelude::shape::Capsule::radius`: please use the `Capsule3d` primitive in `bevy_math` instead

error: use of deprecated field `bevy::prelude::shape::Capsule::radius`: please use the `Capsule3d` primitive in `bevy_math` instead
   --> src/adapters.rs:103:13
    |
103 |             radius: size[0],
    |             ^^^^^^^^^^^^^^^

Check failure on line 99 in src/adapters.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated field `bevy::prelude::shape::UVSphere::radius`: please use the `Sphere` primitive in `bevy_math` instead

error: use of deprecated field `bevy::prelude::shape::UVSphere::radius`: please use the `Sphere` primitive in `bevy_math` instead
  --> src/adapters.rs:99:13
   |
99 |             radius: size[0],
   |             ^^^^^^^^^^^^^^^

Check failure on line 94 in src/adapters.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated field `bevy::prelude::shape::Plane::subdivisions`: please use the `Plane3d` primitive in `bevy_math` instead

error: use of deprecated field `bevy::prelude::shape::Plane::subdivisions`: please use the `Plane3d` primitive in `bevy_math` instead
  --> src/adapters.rs:94:17
   |
94 |                 subdivisions: 0,
   |                 ^^^^^^^^^^^^^^^

Check failure on line 93 in src/adapters.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated field `bevy::prelude::shape::Plane::size`: please use the `Plane3d` primitive in `bevy_math` instead

error: use of deprecated field `bevy::prelude::shape::Plane::size`: please use the `Plane3d` primitive in `bevy_math` instead
  --> src/adapters.rs:93:17
   |
93 |                 size: plane_size,
   |                 ^^^^^^^^^^^^^^^^

Check failure on line 102 in src/adapters.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated struct `bevy::prelude::shape::Capsule`: please use the `Capsule3d` primitive in `bevy_math` instead

error: use of deprecated struct `bevy::prelude::shape::Capsule`: please use the `Capsule3d` primitive in `bevy_math` instead
   --> src/adapters.rs:102:48
    |
102 |         GeomType::CAPSULE => Mesh::from(shape::Capsule {
    |                                                ^^^^^^^

Check failure on line 98 in src/adapters.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated struct `bevy::prelude::shape::UVSphere`: please use the `Sphere` primitive in `bevy_math` instead

error: use of deprecated struct `bevy::prelude::shape::UVSphere`: please use the `Sphere` primitive in `bevy_math` instead
  --> src/adapters.rs:98:47
   |
98 |         GeomType::SPHERE => Mesh::from(shape::UVSphere {
   |                                               ^^^^^^^^

Check failure on line 97 in src/adapters.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated struct `bevy::prelude::shape::Box`: please use the `Cuboid` primitive for meshing or `Aabb3d` for a bounding volume

error: use of deprecated struct `bevy::prelude::shape::Box`: please use the `Cuboid` primitive for meshing or `Aabb3d` for a bounding volume
  --> src/adapters.rs:97:44
   |
97 |         GeomType::BOX => Mesh::from(shape::Box::new(size[0], size[1], size[2])),
   |                                            ^^^

Check failure on line 92 in src/adapters.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated struct `bevy::prelude::shape::Plane`: please use the `Plane3d` primitive in `bevy_math` instead

error: use of deprecated struct `bevy::prelude::shape::Plane`: please use the `Plane3d` primitive in `bevy_math` instead
  --> src/adapters.rs:92:31
   |
92 |             Mesh::from(shape::Plane {
   |                               ^^^^^
   |
   = note: `-D deprecated` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(deprecated)]`

Check failure on line 11 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `mujoco_rust` is imported redundantly

error: the item `mujoco_rust` is imported redundantly
  --> src/lib.rs:11:19
   |
11 | use mujoco_rust::{self, Body, Geom, GeomType};
   |                   ^^^^ the item `mujoco_rust` is already defined by prelude

Check failure on line 4 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `Mesh` is imported redundantly

error: the item `Mesh` is imported redundantly
 --> src/lib.rs:4:53
  |
4 | use bevy::{ecs::system::EntityCommands, prelude::*, render::mesh::Mesh};
  |                                         ----------  ^^^^^^^^^^^^^^^^^^
  |                                         |
  |                                         the item `Mesh` is already imported here

Check failure on line 6 in src/mujoco_shape.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `Mesh` is imported redundantly

error: the item `Mesh` is imported redundantly
 --> src/mujoco_shape.rs:6:25
  |
4 |     prelude::*,
  |     ---------- the item `Mesh` is already imported here
5 |     render::{
6 |         mesh::{Indices, Mesh},
  |                         ^^^^
  |
  = note: `-D unused-imports` implied by `-D warnings`
  = help: to override `-D warnings` add `#[allow(unused_imports)]`