forked from mirrors/gstreamer-rs
video/timecode: Use stringify!($name) instead of "$name" in Debug impl
Otherwise it would output a literal "$name" string.
This commit is contained in:
parent
3bf946ed11
commit
7d8f95971c
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue