Clippy Output
25 errors, 3 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 25 |
Warning | 3 |
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 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 93 in src/support/brender/actor.rs
github-actions / Clippy Output
failed to resolve: use of undeclared type `Models`
error[E0433]: failed to resolve: use of undeclared type `Models`
--> src/support/brender/actor.rs:93:35
|
93 | actor.model = Models::find(model.identifier);
| ^^^^^^ use of undeclared type `Models`
Check warning on line 11 in src/support/texture.rs
github-actions / Clippy Output
unused import: `brender::resource::FromStream`
warning: unused import: `brender::resource::FromStream`
--> src/support/texture.rs:11:28
|
11 | crate::support::{self, brender::resource::FromStream, Error},
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Check warning on line 10 in src/support/mesh.rs
github-actions / Clippy Output
unused imports: `BufRead`, `Vertex`, `anyhow::Result`, `byteorder::ReadBytesExt`
warning: unused imports: `BufRead`, `Vertex`, `anyhow::Result`, `byteorder::ReadBytesExt`
--> src/support/mesh.rs:10:51
|
10 | crate::support::{brender::resource::VertexUV, Vertex},
| ^^^^^^
11 | anyhow::Result,
| ^^^^^^^^^^^^^^
12 | byteorder::ReadBytesExt,
| ^^^^^^^^^^^^^^^^^^^^^^^
...
16 | io::{BufRead, BufReader},
| ^^^^^^^
Check warning on line 16 in src/support/brender/actor.rs
github-actions / Clippy Output
unused import: `id_tree::*`
warning: unused import: `id_tree::*`
--> src/support/brender/actor.rs:16:5
|
16 | id_tree::*,
| ^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
Check failure on line 14 in src/support/car.rs
github-actions / Clippy Output
struct `Model` is private
error[E0603]: struct `Model` is private
--> src/support/car.rs:14:20
|
14 | model::Model,
| ^^^^^ private struct
|
note: the struct `Model` is defined here
--> src/support/brender/model.rs:15:1
|
15 | struct Model {
| ^^^^^^^^^^^^
Check failure on line 35 in src/support/mesh.rs
github-actions / Clippy Output
failed to resolve: use of undeclared type `Mesh`
error[E0433]: failed to resolve: use of undeclared type `Mesh`
--> src/support/mesh.rs:35:21
|
35 | let m = Mesh::from_stream(&mut file);
| ^^^^ use of undeclared type `Mesh`
|
help: consider importing this struct
|
9 + use bevy::render::mesh::Mesh;
|
Check failure on line 33 in src/support/mesh.rs
github-actions / Clippy Output
cannot find type `Mesh` in this scope
error[E0412]: cannot find type `Mesh` in this scope
--> src/support/mesh.rs:33:32
|
33 | let mut meshes = Vec::<Mesh>::new();
| ^^^^ not found in this scope
|
help: consider importing this struct
|
9 + use bevy::render::mesh::Mesh;
|
Check failure on line 30 in src/support/mesh.rs
github-actions / Clippy Output
cannot find type `Mesh` in this scope
error[E0412]: cannot find type `Mesh` in this scope
--> src/support/mesh.rs:30:44
|
30 | pub fn load_many(fname: String) -> Vec<Mesh> {
| ^^^^ not found in this scope
|
help: consider importing this struct
|
9 + use bevy::render::mesh::Mesh;
|
Check failure on line 27 in src/support/mesh.rs
github-actions / Clippy Output
cannot find type `Mesh` in this scope
error[E0412]: cannot find type `Mesh` in this scope
--> src/support/mesh.rs:27:6
|
27 | impl Mesh {
| ^^^^ not found in this scope
|
help: consider importing this struct
|
9 + use bevy::render::mesh::Mesh;
|
Check failure on line 454 in src/support/brender/resource.rs
github-actions / Clippy Output
cannot find value `face_material_indices` in this scope
error[E0425]: cannot find value `face_material_indices` in this scope
--> src/support/brender/resource.rs:454:13
|
441 | pub face_material_indices: Vec<u16>,
| ----------------------------------- a field by that name exists in `Self`
...
454 | face_material_indices,
| ^^^^^^^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `face_material_indexes`
Check failure on line 82 in src/support/brender/model.rs
github-actions / Clippy Output
cannot find value `Model` in module `stack`
error[E0425]: cannot find value `Model` in module `stack`
--> src/support/brender/model.rs:82:26
|
82 | stack.pop(stack::Model)?
| ^^^^^
|
::: src/support/brender/resource.rs:1142:5
|
1142 | pub const MODEL: u32 = 8;
| ------------------------- similarly named constant `MODEL` defined here
|
help: a constant with a similar name exists
|
82 | stack.pop(stack::MODEL)?
| ~~~~~
help: consider importing one of these items
|
1 + use crate::support::brender::resource::Chunk::Model;
|
1 + use crate::support::brender::resource::ResourceTag::Model;
|
help: if you import `Model`, refer to it directly
|
82 - stack.pop(stack::Model)?
82 + stack.pop(Model)?
|
Check failure on line 56 in src/support/brender/model.rs
github-actions / Clippy Output
cannot find struct, variant or union type `VerticesChunk` in this scope
error[E0422]: cannot find struct, variant or union type `VerticesChunk` in this scope
--> src/support/brender/model.rs:56:33
|
56 | Chunk::Vertices(VerticesChunk { vertices }) => {
| ^^^^^^^^^^^^^
|
::: src/support/brender/resource.rs:373:1
|
373 | pub struct VertexUvChunk {
| ------------------------ similarly named struct `VertexUvChunk` defined here
|
help: a struct with a similar name exists
|
56 | Chunk::Vertices(VertexUvChunk { vertices }) => {
| ~~~~~~~~~~~~~
help: consider importing this struct
|
1 + use crate::support::brender::resource::VerticesChunk;
|
Check failure on line 20 in src/support/brender/model.rs
github-actions / Clippy Output
cannot find type `Vec3f` in this scope
error[E0412]: cannot find type `Vec3f` in this scope
--> src/support/brender/model.rs:20:12
|
20 | pivot: Vec3f,
| ^^^^^ not found in this scope
|
note: struct `crate::support::brender::resource::Vec3f` exists but is inaccessible
--> src/support/brender/resource.rs:300:1
|
300 | struct Vec3f {
| ^^^^^^^^^^^^ not accessible
Check failure on line 167 in src/support/brender/actor.rs
github-actions / Clippy Output
cannot find value `actor` in this scope
error[E0425]: cannot find value `actor` in this scope
--> src/support/brender/actor.rs:167:9
|
167 | actor
| ^^^^^ not found in this scope
Check failure on line 160 in src/support/brender/actor.rs
github-actions / Clippy Output
cannot find value `plane` in this scope
error[E0425]: cannot find value `plane` in this scope
--> src/support/brender/actor.rs:160:46
|
160 | stack.push(stack::PLANE, plane);
| ^^^^^ not found in this scope
Check failure on line 157 in src/support/brender/actor.rs
github-actions / Clippy Output
cannot find value `camera` in this scope
error[E0425]: cannot find value `camera` in this scope
--> src/support/brender/actor.rs:157:47
|
157 | stack.push(stack::CAMERA, camera);
| ^^^^^^ not found in this scope
Check failure on line 154 in src/support/brender/actor.rs
github-actions / Clippy Output
cannot find value `light` in this scope
error[E0425]: cannot find value `light` in this scope
--> src/support/brender/actor.rs:154:46
|
154 | stack.push(stack::LIGHT, light);
| ^^^^^ not found in this scope
Check failure on line 151 in src/support/brender/actor.rs
github-actions / Clippy Output
cannot find value `bounds` in this scope
error[E0425]: cannot find value `bounds` in this scope
--> src/support/brender/actor.rs:151:47
|
151 | stack.push(stack::BOUNDS, bounds);
| ^^^^^^ not found in this scope
Check failure on line 147 in src/support/brender/actor.rs
github-actions / Clippy Output
cannot find value `transform` in this scope
error[E0425]: cannot find value `transform` in this scope
--> src/support/brender/actor.rs:147:50
|
55 | transform: (),
| ------------- a field by that name exists in `Self`
...
147 | stack.push(stack::TRANSFORM, transform);
| ^^^^^^^^^
Check failure on line 144 in src/support/brender/actor.rs
github-actions / Clippy Output
cannot find value `transform` in this scope
error[E0425]: cannot find value `transform` in this scope
--> src/support/brender/actor.rs:144:50
|
55 | transform: (),
| ------------- a field by that name exists in `Self`
...
144 | stack.push(stack::TRANSFORM, transform);
| ^^^^^^^^^
Check failure on line 141 in src/support/brender/actor.rs
github-actions / Clippy Output
cannot find value `transform` in this scope
error[E0425]: cannot find value `transform` in this scope
--> src/support/brender/actor.rs:141:50
|
55 | transform: (),
| ------------- a field by that name exists in `Self`
...
141 | stack.push(stack::TRANSFORM, transform);
| ^^^^^^^^^
Check failure on line 138 in src/support/brender/actor.rs
github-actions / Clippy Output
cannot find value `transform` in this scope
error[E0425]: cannot find value `transform` in this scope
--> src/support/brender/actor.rs:138:50
|
55 | transform: (),
| ------------- a field by that name exists in `Self`
...
138 | stack.push(stack::TRANSFORM, transform);
| ^^^^^^^^^
Check failure on line 135 in src/support/brender/actor.rs
github-actions / Clippy Output
cannot find value `transform` in this scope
error[E0425]: cannot find value `transform` in this scope
--> src/support/brender/actor.rs:135:50
|
55 | transform: (),
| ------------- a field by that name exists in `Self`
...
135 | stack.push(stack::TRANSFORM, transform);
| ^^^^^^^^^
Check failure on line 132 in src/support/brender/actor.rs
github-actions / Clippy Output
cannot find value `transform` in this scope
error[E0425]: cannot find value `transform` in this scope
--> src/support/brender/actor.rs:132:50
|
55 | transform: (),
| ------------- a field by that name exists in `Self`
...
132 | stack.push(stack::TRANSFORM, transform);
| ^^^^^^^^^