Skip to content
Snippets Groups Projects
Commit 7d8f9597 authored by Sebastian Dröge's avatar Sebastian Dröge :tea:
Browse files

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

Otherwise it would output a literal "$name" string.
parent 3bf946ed
No related branches found
No related tags found
No related merge requests found
......@@ -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())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment