add _ prefix for method arguments in generated project template

- removed warnings suppression from ci
This commit is contained in:
Dmitry Stepanov
2024-04-01 10:00:04 +03:00
parent 8ae2ae5057
commit a7a06dbf72
2 changed files with 4 additions and 13 deletions
-9
View File
@@ -130,9 +130,6 @@ jobs:
run: |
cargo install fyrox-template --path=template --force
- name: Generate and Build Projects
env:
# Suppress warnings, because project template contains a lot of unused method arguments.
RUSTFLAGS: -Awarnings
run: |
cd ../
fyrox-template init --name test_project --style=3d
@@ -164,9 +161,6 @@ jobs:
cargo install cargo-apk
rustup target add armv7-linux-androideabi
- name: Generate and Build Projects
env:
# Suppress warnings, because project template contains a lot of unused method arguments.
RUSTFLAGS: -Awarnings
run: |
cd ../
fyrox-template init --name test_project --style=3d
@@ -187,9 +181,6 @@ jobs:
cargo install wasm-pack
rustup target add wasm32-unknown-unknown
- name: Generate and Build Projects
env:
# Suppress warnings, because project template contains a lot of unused method arguments.
RUSTFLAGS: -Awarnings
run: |
cd ../
fyrox-template init --name test_project --style=3d
+4 -4
View File
@@ -213,7 +213,7 @@ impl Plugin for Game {
// Handle UI events here.
}
fn on_scene_begin_loading(&mut self, path: &Path, ctx: &mut PluginContext) {
fn on_scene_begin_loading(&mut self, _path: &Path, ctx: &mut PluginContext) {
if self.scene.is_some() {
ctx.scenes.remove(self.scene);
}
@@ -221,10 +221,10 @@ impl Plugin for Game {
fn on_scene_loaded(
&mut self,
path: &Path,
_path: &Path,
scene: Handle<Scene>,
data: &[u8],
context: &mut PluginContext,
_data: &[u8],
_context: &mut PluginContext,
) {
self.scene = scene;
}