From 09f1a87dc9fb0f80b636d134b6dfbf484bfcf34a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 16 Nov 2020 13:21:57 +0200 Subject: [PATCH] video/timecode: Use stringify!($name) instead of "$name" in Debug impl Otherwise it would output a literal "$name" string. --- gstreamer-video/src/video_time_code.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gstreamer-video/src/video_time_code.rs b/gstreamer-video/src/video_time_code.rs index bf447ecdd..fd9cdfc79 100644 --- a/gstreamer-video/src/video_time_code.rs +++ b/gstreamer-video/src/video_time_code.rs @@ -321,7 +321,7 @@ macro_rules! generic_impl { impl fmt::Debug for $name { fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> { - f.debug_struct("$name") + f.debug_struct(stringify!($name)) .field("fps", &self.get_fps()) .field("flags", &self.get_flags()) .field("latest_daily_jam", &self.get_latest_daily_jam())