From 8e266760e27b12b3b3cd0eacf0df0bb5f0edc8f5 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Wed, 27 Apr 2022 10:15:32 +0200 Subject: [PATCH] Silence warnings about unused profiling macros in egui-winit --- egui-winit/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/egui-winit/src/lib.rs b/egui-winit/src/lib.rs index e2f35a90b..bd6e8c618 100644 --- a/egui-winit/src/lib.rs +++ b/egui-winit/src/lib.rs @@ -663,19 +663,23 @@ fn translate_cursor(cursor_icon: egui::CursorIcon) -> Option { #[cfg(feature = "puffin")] puffin::profile_function!($($arg)*); }; } +#[allow(unused_imports)] pub(crate) use profile_function; /// Profiling macro for feature "puffin" +#[allow(unused_macros)] macro_rules! profile_scope { ($($arg: tt)*) => { #[cfg(feature = "puffin")] puffin::profile_scope!($($arg)*); }; } +#[allow(unused_imports)] pub(crate) use profile_scope;