mirror of
https://github.com/FyroxEngine/Fyrox.git
synced 2026-10-12 02:02:20 +00:00
add _ prefix for method arguments in generated project template
- removed warnings suppression from ci
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user