Skip to content

Add bevy

Add bevy #27

Triggered via pull request March 3, 2024 22:22
@berkusberkus
synchronize #5
add-bevy
Status Failure
Total duration 3m 7s
Artifacts

check.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

47 errors and 20 warnings
Rustfmt: src/support/brender/model.rs#L55
expected expression, found keyword `type`
Rustfmt
The process '/home/runner/.cargo/bin/cargo' failed with exit code 1
no method named `get_node_depth` found for struct `support::brender::actor::Actor` in the current scope: src/support/render_manager.rs#L184
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
no method named `traverse` found for struct `support::brender::actor::Actor` in the current scope: src/support/render_manager.rs#L178
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
no field `faces` on type `bevy::prelude::Mesh`: src/support/render_manager.rs#L128
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
no field `vertices` on type `bevy::prelude::Mesh`: src/support/render_manager.rs#L123
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
mismatched types: src/support/render_manager.rs#L116
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); | +
no method named `traverse` found for struct `support::brender::actor::Actor` in the current scope: src/support/render_manager.rs#L113
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
no field `material_names` on type `bevy::prelude::Mesh`: src/support/render_manager.rs#L87
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
mismatched types: src/support/car.rs#L551
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) { | +
no function or associated item named `load_from` found for struct `support::brender::actor::Actor` in the current scope: src/support/car.rs#L545
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> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
no field `material_names` on type `&bevy::prelude::Mesh`: src/support/car.rs#L345
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
no method named `dump_actor_points` found for struct `support::brender::actor::Actor` in the current scope: src/support/car.rs#L332
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
no method named `dump` found for struct `support::brender::actor::Actor` in the current scope: src/support/car.rs#L331
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
no function or associated item named `load_from` found for struct `bevy::prelude::Mesh` in the current scope: src/support/car.rs#L296
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 { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
mismatched types: src/support/brender/resource.rs#L1183
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) | ++++
the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result`: src/support/brender/resource.rs#L1171
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>>>
no field `chidren` on type `std::option::Option<&mut support::brender::resource::ResourceTag>`: src/support/brender/actor.rs#L125
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
no variant or associated item named `ClipPlane` found for enum `support::brender::actor::ActorData` in the current scope: src/support/brender/actor.rs#L120
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`
no field `data` on type `std::option::Option<&mut support::brender::resource::ResourceTag>`: src/support/brender/actor.rs#L120
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
this enum variant takes 0 arguments but 1 argument was supplied: src/support/brender/actor.rs#L115
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(), | ^^^^^^
no field `data` on type `std::option::Option<&mut support::brender::resource::ResourceTag>`: src/support/brender/actor.rs#L115
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
this enum variant takes 0 arguments but 1 argument was supplied: src/support/brender/actor.rs#L110
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(), | ^^^^^^
this enum variant takes 0 arguments but 1 argument was supplied: src/support/brender/actor.rs#L106
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(), | ^^^^^
failed to resolve: use of undeclared type `Materials`: src/support/brender/actor.rs#L102
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`
no field `material` on type `std::option::Option<&mut support::brender::resource::ResourceTag>`: src/support/brender/actor.rs#L102
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
no field `transform` on type `std::option::Option<&mut support::brender::resource::ResourceTag>`: src/support/brender/actor.rs#L98
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
failed to resolve: use of undeclared type `Models`: src/support/brender/actor.rs#L93
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`
no field `model` on type `std::option::Option<&mut support::brender::resource::ResourceTag>`: src/support/brender/actor.rs#L93
error[E0609]: no field `model` on type `std::option::Option<&mut support::brender::resource::ResourceTag>` --> src/support/brender/actor.rs:93:27 | 93 | actor.model = Models::find(model.identifier); | ^^^^^ unknown field
not all trait items implemented, missing: `from_stream`: src/support/brender/model.rs#L21
error[E0046]: not all trait items implemented, missing: `from_stream` --> src/support/brender/model.rs:21:1 | 21 | impl FromStream for Model { | ^^^^^^^^^^^^^^^^^^^^^^^^^ missing `from_stream` in implementation | ::: src/support/brender/resource.rs:21:5 | 21 | fn from_stream<S: ReadBytesExt + BufRead>(source: &mut S) -> Result<Self::Output, Error>; | ----------------------------------------------------------------------------------------- `from_stream` from trait
struct `Model` is private: src/support/car.rs#L14
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:10:1 | 10 | struct Model {} | ^^^^^^^^^^^^
cannot find value `actor` in this scope: src/support/brender/actor.rs#L167
error[E0425]: cannot find value `actor` in this scope --> src/support/brender/actor.rs:167:9 | 167 | actor | ^^^^^ not found in this scope
cannot find value `plane` in this scope: src/support/brender/actor.rs#L160
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
cannot find value `camera` in this scope: src/support/brender/actor.rs#L157
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
cannot find value `light` in this scope: src/support/brender/actor.rs#L154
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
cannot find value `bounds` in this scope: src/support/brender/actor.rs#L151
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
cannot find value `transform` in this scope: src/support/brender/actor.rs#L147
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); | ^^^^^^^^^
cannot find value `transform` in this scope: src/support/brender/actor.rs#L144
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); | ^^^^^^^^^
cannot find value `transform` in this scope: src/support/brender/actor.rs#L141
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); | ^^^^^^^^^
cannot find value `transform` in this scope: src/support/brender/actor.rs#L138
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); | ^^^^^^^^^
cannot find value `transform` in this scope: src/support/brender/actor.rs#L135
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); | ^^^^^^^^^
cannot find value `transform` in this scope: src/support/brender/actor.rs#L132
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); | ^^^^^^^^^
cannot find value `transform` in this scope: src/support/brender/actor.rs#L129
error[E0425]: cannot find value `transform` in this scope --> src/support/brender/actor.rs:129:50 | 55 | transform: (), | ------------- a field by that name exists in `Self` ... 129 | stack.push(stack::TRANSFORM, transform); | ^^^^^^^^^
cannot find value `actor` in this scope: src/support/brender/actor.rs#L110
error[E0425]: cannot find value `actor` in this scope --> src/support/brender/actor.rs:110:21 | 110 | actor.data = ActorData::Camera(camera); | ^^^^^ not found in this scope
cannot find value `actor` in this scope: src/support/brender/actor.rs#L106
error[E0425]: cannot find value `actor` in this scope --> src/support/brender/actor.rs:106:21 | 106 | actor.data = ActorData::Light(light); | ^^^^^ | help: the binding `actor` is available in a different scope in the same function --> src/support/brender/actor.rs:101:29 | 101 | let mut actor = stack.top(stack::ACTOR); | ^^^^^
Clippy
Clippy had exited with the 101 exit code
Check
The process '/home/runner/.cargo/bin/cargo' failed with exit code 101
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/
unused imports: `Chunk`, `FileInfoChunk`, `ResourceStack`, `byteorder::ReadBytesExt`, `crate::support`, `file_type`, `std::io::prelude::BufRead`, `throw`: src/support/brender/model.rs#L2
warning: unused imports: `Chunk`, `FileInfoChunk`, `ResourceStack`, `byteorder::ReadBytesExt`, `crate::support`, `file_type`, `std::io::prelude::BufRead`, `throw` --> src/support/brender/model.rs:2:23 | 2 | super::resource::{file_type, Chunk, FileInfoChunk, FromStream, ResourceStack}, | ^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^ 3 | crate::support, | ^^^^^^^^^^^^^^ 4 | byteorder::ReadBytesExt, | ^^^^^^^^^^^^^^^^^^^^^^^ 5 | fehler::{throw, throws}, | ^^^^^ 6 | std::io::prelude::BufRead, | ^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `id_tree::*`: src/support/brender/actor.rs#L16
warning: unused import: `id_tree::*` --> src/support/brender/actor.rs:16:5 | 16 | id_tree::*, | ^^^^^^^^^^ | = 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-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-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/
Check
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/.
Check
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/
Check
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/
Check
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/
Check
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/
Check
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/