From 920b845e3a9d5c86310b5bc0ea3d56dbb45eaeda Mon Sep 17 00:00:00 2001 From: David Huculak Date: Tue, 2 Apr 2024 05:19:17 -0400 Subject: [PATCH] fix compilation of demo with tracy feature (#66) * fix compilation of demo with tracy feature * run ci checks on all targets * can't check on all targets on wasm due to tracy native compile shenanigans --------- Co-authored-by: Andreas Reich --- .github/workflows/rust.yml | 4 ++-- examples/demo.rs | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index def8897..7cf5c04 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -19,6 +19,6 @@ jobs: with: target: wasm32-unknown-unknown - run: cargo fmt -- --check - - run: cargo clippy --locked -- -D warnings + - run: cargo clippy --locked --all-targets -- -D warnings - run: cargo check --locked --target wasm32-unknown-unknown - - run: cargo clippy --locked --all-features -- -D warnings + - run: cargo clippy --locked --all-features --all-targets -- -D warnings diff --git a/examples/demo.rs b/examples/demo.rs index 02a8444..86e9366 100644 --- a/examples/demo.rs +++ b/examples/demo.rs @@ -124,7 +124,8 @@ async fn run(event_loop: EventLoop<()>, window: Window) { &queue, ) .unwrap_or_else(|err| match err { - CreationError::TracyClientNotRunning | CreationError::TracyGpuContextCreationError(_) => { + wgpu_profiler::CreationError::TracyClientNotRunning + | wgpu_profiler::CreationError::TracyGpuContextCreationError(_) => { println!("Failed to connect to Tracy. Continuing without Tracy integration."); GpuProfiler::new(GpuProfilerSettings::default()).expect("Failed to create profiler") }