Skip to content

Commit

Permalink
quiet warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
samizdatco committed Aug 5, 2022
1 parent bb58120 commit 7910441
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gpu/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ impl Engine {
#[cfg(feature = "metal")]
pub use crate::gpu::metal::autoreleasepool as runloop;
#[cfg(not(feature = "metal"))]
#[allow(dead_code)]
pub fn runloop<T, F: FnOnce() -> T>(f: F) -> T { f() }

#[derive(Copy, Clone, Debug)]
Expand Down

0 comments on commit 7910441

Please sign in to comment.