diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index af4c48a37..ded2a4440 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/template/src/main.rs b/template/src/main.rs index 1e74d3212..8814d6641 100644 --- a/template/src/main.rs +++ b/template/src/main.rs @@ -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, - data: &[u8], - context: &mut PluginContext, + _data: &[u8], + _context: &mut PluginContext, ) { self.scene = scene; }