mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-29 13:01:05 +00:00
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
3d3bdf9aa3
commit
09f1a87dc9
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||||
|
|
Loading…
Reference in a new issue