video/timecode: Use stringify!($name) instead of "$name" in Debug impl

Otherwise it would output a literal "$name" string.
This commit is contained in:
Sebastian Dröge 2020-11-16 13:21:57 +02:00
parent 3bf946ed11
commit 7d8f95971c

View file

@ -321,7 +321,7 @@ macro_rules! generic_impl {
impl fmt::Debug for $name { impl fmt::Debug for $name {
fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> { 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("fps", &self.get_fps())
.field("flags", &self.get_flags()) .field("flags", &self.get_flags())
.field("latest_daily_jam", &self.get_latest_daily_jam()) .field("latest_daily_jam", &self.get_latest_daily_jam())