Add bevy #27
Clippy Output
43 errors, 2 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 43 |
Warning | 2 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.76.0 (07dca489a 2024-02-04)
- cargo 1.76.0 (c84b36747 2024-01-18)
- clippy 0.1.76 (07dca48 2024-02-04)
Annotations
Check failure on line 184 in src/support/render_manager.rs
github-actions / Clippy Output
no method named `get_node_depth` found for struct `support::brender::actor::Actor` in the current scope
error[E0599]: no method named `get_node_depth` found for struct `support::brender::actor::Actor` in the current scope
--> src/support/render_manager.rs:184:44
|
184 | let depth = car.actors.get_node_depth(actor) - 1;
| ^^^^^^^^^^^^^^ method not found in `Actor`
|
::: src/support/brender/actor.rs:54:1
|
54 | pub struct Actor {
| ---------------- method `get_node_depth` not found for this struct
Check failure on line 178 in src/support/render_manager.rs
github-actions / Clippy Output
no method named `traverse` found for struct `support::brender::actor::Actor` in the current scope
error[E0599]: no method named `traverse` found for struct `support::brender::actor::Actor` in the current scope
--> src/support/render_manager.rs:178:33
|
178 | for actor in car.actors.traverse() {
| ^^^^^^^^ method not found in `Actor`
|
::: src/support/brender/actor.rs:54:1
|
54 | pub struct Actor {
| ---------------- method `traverse` not found for this struct
Check failure on line 128 in src/support/render_manager.rs
github-actions / Clippy Output
no field `faces` on type `bevy::prelude::Mesh`
error[E0609]: no field `faces` on type `bevy::prelude::Mesh`
--> src/support/render_manager.rs:128:39
|
128 | let faces = &car.meshes[name].faces;
| ^^^^^ unknown field
Check failure on line 123 in src/support/render_manager.rs
github-actions / Clippy Output
no field `vertices` on type `bevy::prelude::Mesh`
error[E0609]: no field `vertices` on type `bevy::prelude::Mesh`
--> src/support/render_manager.rs:123:74
|
123 | let vbo = VertexBuffer::<Vertex>::new(display, &car.meshes[name].vertices).unwrap();
| ^^^^^^^^ unknown field
Check failure on line 116 in src/support/render_manager.rs
github-actions / Clippy Output
mismatched types
error[E0308]: mismatched types
--> src/support/render_manager.rs:116:40
|
116 | self.prepare_car_actor(name, car, display);
| ----------------- ^^^^ expected `&String`, found `String`
| |
| arguments to this method are incorrect
|
note: method defined here
--> src/support/render_manager.rs:121:12
|
121 | pub fn prepare_car_actor(&mut self, name: &String, car: &Car, display: &Display) {
| ^^^^^^^^^^^^^^^^^ -------------
help: consider borrowing here
|
116 | self.prepare_car_actor(&name, car, display);
| +
Check failure on line 113 in src/support/render_manager.rs
github-actions / Clippy Output
no method named `traverse` found for struct `support::brender::actor::Actor` in the current scope
error[E0599]: no method named `traverse` found for struct `support::brender::actor::Actor` in the current scope
--> src/support/render_manager.rs:113:33
|
113 | for actor in car.actors.traverse() {
| ^^^^^^^^ method not found in `Actor`
|
::: src/support/brender/actor.rs:54:1
|
54 | pub struct Actor {
| ---------------- method `traverse` not found for this struct
Check failure on line 87 in src/support/render_manager.rs
github-actions / Clippy Output
no field `material_names` on type `bevy::prelude::Mesh`
error[E0609]: no field `material_names` on type `bevy::prelude::Mesh`
--> src/support/render_manager.rs:87:56
|
87 | let material = &car.meshes[actor_name].material_names[(mat - 1) as usize];
| ^^^^^^^^^^^^^^ unknown field
Check failure on line 551 in src/support/car.rs
github-actions / Clippy Output
mismatched types
error[E0308]: mismatched types
--> src/support/car.rs:551:45
|
551 | if !car_meshes.contains_key(name) {
| ------------ ^^^^ expected `&_`, found `String`
| |
| arguments to this method are incorrect
|
= note: expected reference `&_`
found struct `std::string::String`
note: method defined here
--> /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/collections/hash/map.rs:1039:12
help: consider borrowing here
|
551 | if !car_meshes.contains_key(&name) {
| +
Check failure on line 545 in src/support/car.rs
github-actions / Clippy Output
no function or associated item named `load_from` found for struct `support::brender::actor::Actor` in the current scope
error[E0599]: no function or associated item named `load_from` found for struct `support::brender::actor::Actor` in the current scope
--> src/support/car.rs:545:33
|
545 | let car_actors = Actor::load_from(actor_file_name)?;
| ^^^^^^^^^ function or associated item not found in `Actor`
|
::: src/support/brender/actor.rs:54:1
|
54 | pub struct Actor {
| ---------------- function or associated item `load_from` not found for this struct
|
note: if you're trying to build a new `support::brender::actor::Actor`, consider using `support::brender::actor::Actor::load_many` which returns `std::result::Result<support::brender::actor::Actor, support::Error>`
--> src/support/brender/actor.rs:61:5
|
61 | pub fn load_many<P: AsRef<std::path::Path>>(filename: P) -> Result<Actor, Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Check failure on line 345 in src/support/car.rs
github-actions / Clippy Output
no field `material_names` on type `&bevy::prelude::Mesh`
error[E0609]: no field `material_names` on type `&bevy::prelude::Mesh`
--> src/support/car.rs:345:32
|
345 | for mat in &mesh.1.material_names {
| ^^^^^^^^^^^^^^ unknown field
Check failure on line 332 in src/support/car.rs
github-actions / Clippy Output
no method named `dump_actor_points` found for struct `support::brender::actor::Actor` in the current scope
error[E0599]: no method named `dump_actor_points` found for struct `support::brender::actor::Actor` in the current scope
--> src/support/car.rs:332:21
|
332 | self.actors.dump_actor_points();
| ^^^^^^^^^^^^^^^^^ method not found in `Actor`
|
::: src/support/brender/actor.rs:54:1
|
54 | pub struct Actor {
| ---------------- method `dump_actor_points` not found for this struct
Check failure on line 331 in src/support/car.rs
github-actions / Clippy Output
no method named `dump` found for struct `support::brender::actor::Actor` in the current scope
error[E0599]: no method named `dump` found for struct `support::brender::actor::Actor` in the current scope
--> src/support/car.rs:331:21
|
331 | self.actors.dump();
| ^^^^ method not found in `Actor`
|
::: src/support/brender/actor.rs:54:1
|
54 | pub struct Actor {
| ---------------- method `dump` not found for this struct
Check failure on line 296 in src/support/car.rs
github-actions / Clippy Output
no function or associated item named `load_from` found for struct `bevy::prelude::Mesh` in the current scope
error[E0599]: no function or associated item named `load_from` found for struct `bevy::prelude::Mesh` in the current scope
--> src/support/car.rs:296:28
|
296 | let meshes = Mesh::load_from(
| ^^^^^^^^^ function or associated item not found in `Mesh`
|
note: if you're trying to build a new `bevy::prelude::Mesh`, consider using `bevy::prelude::Mesh::new` which returns `bevy::prelude::Mesh`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_render-0.12.1/src/mesh/mesh/mod.rs:183:5
|
183 | pub fn new(primitive_topology: PrimitiveTopology) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Check failure on line 1183 in src/support/brender/resource.rs
github-actions / Clippy Output
mismatched types
error[E0308]: mismatched types
--> src/support/brender/resource.rs:1183:14
|
1183 | Some(resource)
| ---- ^^^^^^^^ expected `&mut ResourceTag`, found `ResourceTag`
| |
| arguments to this enum variant are incorrect
|
help: the type constructed contains `support::brender::resource::ResourceTag` due to the type of the argument passed
--> src/support/brender/resource.rs:1183:9
|
1183 | Some(resource)
| ^^^^^--------^
| |
| this argument influences the type of `Some`
note: tuple variant defined here
--> /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/option.rs:578:5
help: consider mutably borrowing here
|
1183 | Some(&mut resource)
| ++++
Check failure on line 1171 in src/support/brender/resource.rs
github-actions / Clippy Output
the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result`
error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result`
--> src/support/brender/resource.rs:1171:47
|
1169 | #[throws]
| --------- this function returns a `Result`
1170 | pub fn pop<T>(&mut self, expected_tag: u32) -> ResourceTag {
1171 | let (tag, resource) = self.stack.pop()?;
| ^ use `.ok_or(...)?` to provide an error compatible with `std::result::Result<support::brender::resource::ResourceTag, support::Error>`
|
= help: the trait `std::ops::FromResidual<std::option::Option<std::convert::Infallible>>` is not implemented for `std::result::Result<support::brender::resource::ResourceTag, support::Error>`
= help: the following other types implement trait `std::ops::FromResidual<R>`:
<std::result::Result<T, F> as std::ops::FromResidual<std::ops::Yeet<E>>>
<std::result::Result<T, F> as std::ops::FromResidual<std::result::Result<std::convert::Infallible, E>>>
Check failure on line 125 in src/support/brender/actor.rs
github-actions / Clippy Output
no field `chidren` on type `std::option::Option<&mut support::brender::resource::ResourceTag>`
error[E0609]: no field `chidren` on type `std::option::Option<&mut support::brender::resource::ResourceTag>`
--> src/support/brender/actor.rs:125:27
|
125 | actor.chidren.push(child);
| ^^^^^^^ unknown field
Check failure on line 120 in src/support/brender/actor.rs
github-actions / Clippy Output
no variant or associated item named `ClipPlane` found for enum `support::brender::actor::ActorData` in the current scope
error[E0599]: no variant or associated item named `ClipPlane` found for enum `support::brender::actor::ActorData` in the current scope
--> src/support/brender/actor.rs:120:45
|
44 | enum ActorData {
| -------------- variant or associated item `ClipPlane` not found for this enum
...
120 | actor.data = ActorData::ClipPlane(plane);
| ^^^^^^^^^ variant or associated item not found in `ActorData`
Check failure on line 120 in src/support/brender/actor.rs
github-actions / Clippy Output
no field `data` on type `std::option::Option<&mut support::brender::resource::ResourceTag>`
error[E0609]: no field `data` on type `std::option::Option<&mut support::brender::resource::ResourceTag>`
--> src/support/brender/actor.rs:120:27
|
120 | actor.data = ActorData::ClipPlane(plane);
| ^^^^ unknown field
Check failure on line 115 in src/support/brender/actor.rs
github-actions / Clippy Output
this enum variant takes 0 arguments but 1 argument was supplied
error[E0061]: this enum variant takes 0 arguments but 1 argument was supplied
--> src/support/brender/actor.rs:115:34
|
115 | actor.data = ActorData::Bounds(bounds);
| ^^^^^^^^^^^^^^^^^ ------
| |
| unexpected argument of type `std::result::Result<support::brender::resource::ResourceTag, support::Error>`
| help: remove the extra argument
|
note: tuple variant defined here
--> src/support/brender/actor.rs:49:5
|
49 | Bounds(),
| ^^^^^^
Check failure on line 115 in src/support/brender/actor.rs
github-actions / Clippy Output
no field `data` on type `std::option::Option<&mut support::brender::resource::ResourceTag>`
error[E0609]: no field `data` on type `std::option::Option<&mut support::brender::resource::ResourceTag>`
--> src/support/brender/actor.rs:115:27
|
115 | actor.data = ActorData::Bounds(bounds);
| ^^^^ unknown field
Check failure on line 110 in src/support/brender/actor.rs
github-actions / Clippy Output
this enum variant takes 0 arguments but 1 argument was supplied
error[E0061]: this enum variant takes 0 arguments but 1 argument was supplied
--> src/support/brender/actor.rs:110:34
|
110 | actor.data = ActorData::Camera(camera);
| ^^^^^^^^^^^^^^^^^ ------
| |
| unexpected argument of type `std::result::Result<support::brender::resource::ResourceTag, support::Error>`
| help: remove the extra argument
|
note: tuple variant defined here
--> src/support/brender/actor.rs:48:5
|
48 | Camera(),
| ^^^^^^
Check failure on line 106 in src/support/brender/actor.rs
github-actions / Clippy Output
this enum variant takes 0 arguments but 1 argument was supplied
error[E0061]: this enum variant takes 0 arguments but 1 argument was supplied
--> src/support/brender/actor.rs:106:34
|
106 | actor.data = ActorData::Light(light);
| ^^^^^^^^^^^^^^^^ -----
| |
| unexpected argument of type `std::result::Result<support::brender::resource::ResourceTag, support::Error>`
| help: remove the extra argument
|
note: tuple variant defined here
--> src/support/brender/actor.rs:47:5
|
47 | Light(),
| ^^^^^
Check failure on line 102 in src/support/brender/actor.rs
github-actions / Clippy Output
failed to resolve: use of undeclared type `Materials`
error[E0433]: failed to resolve: use of undeclared type `Materials`
--> src/support/brender/actor.rs:102:38
|
102 | actor.material = Materials::find(material.identifier);
| ^^^^^^^^^ use of undeclared type `Materials`
Check failure on line 102 in src/support/brender/actor.rs
github-actions / Clippy Output
no field `material` on type `std::option::Option<&mut support::brender::resource::ResourceTag>`
error[E0609]: no field `material` on type `std::option::Option<&mut support::brender::resource::ResourceTag>`
--> src/support/brender/actor.rs:102:27
|
102 | actor.material = Materials::find(material.identifier);
| ^^^^^^^^ unknown field
Check failure on line 98 in src/support/brender/actor.rs
github-actions / Clippy Output
no field `transform` on type `std::option::Option<&mut support::brender::resource::ResourceTag>`
error[E0609]: no field `transform` on type `std::option::Option<&mut support::brender::resource::ResourceTag>`
--> src/support/brender/actor.rs:98:27
|
98 | actor.transform = transform;
| ^^^^^^^^^ unknown field